2021-09-09 15:38:29 +02:00
|
|
|
name: 'Deploy to Netlify (dev)'
|
2021-09-01 17:31:24 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- dev
|
|
|
|
|
|
|
|
jobs:
|
2022-03-23 15:10:39 +01:00
|
|
|
deploy-to-netlify:
|
2022-09-07 10:16:44 +02:00
|
|
|
name: 'Deploy to Netlify'
|
2021-09-01 17:31:24 +02:00
|
|
|
runs-on: ubuntu-latest
|
2022-03-30 10:12:52 +02:00
|
|
|
steps:
|
2022-03-23 15:10:39 +01:00
|
|
|
- name: Checkout repository
|
2022-04-26 13:53:22 +02:00
|
|
|
uses: actions/checkout@v3.0.2
|
2022-06-14 16:25:48 +02:00
|
|
|
- name: Setup node
|
2022-07-16 13:41:48 +02:00
|
|
|
uses: actions/setup-node@v3.4.1
|
2022-06-14 16:25:48 +02:00
|
|
|
with:
|
|
|
|
node-version: 17.9.0
|
2022-09-07 10:16:44 +02:00
|
|
|
cache: 'npm'
|
|
|
|
- name: Install dependencies
|
|
|
|
run: npm ci
|
|
|
|
- name: Build app
|
|
|
|
run: npm run build
|
|
|
|
- name: Deploy to Netlify
|
|
|
|
uses: nwtgck/actions-netlify@b7c1504e00c6b8a249d1848cc1b522a4865eed99
|
2021-09-01 17:31:24 +02:00
|
|
|
with:
|
2022-09-07 10:16:44 +02:00
|
|
|
publish-dir: dist
|
|
|
|
deploy-message: "Dev deploy ${{ github.sha }}"
|
|
|
|
enable-commit-comment: false
|
|
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
production-deploy: true
|
|
|
|
github-deployment-environment: nightly
|
|
|
|
github-deployment-description: 'Nightly deployment on each commit to dev branch'
|
|
|
|
env:
|
2021-09-01 17:31:24 +02:00
|
|
|
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
|
|
|
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE2_ID }}
|
2022-09-07 10:16:44 +02:00
|
|
|
timeout-minutes: 1
|