2021-09-09 16:38:29 +03:00
|
|
|
name: 'Deploy to Netlify (dev)'
|
2021-09-01 18:31:24 +03:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- dev
|
|
|
|
|
|
|
|
jobs:
|
2022-03-23 16:10:39 +02:00
|
|
|
deploy-to-netlify:
|
2022-09-07 11:16:44 +03:00
|
|
|
name: 'Deploy to Netlify'
|
2021-09-01 18:31:24 +03:00
|
|
|
runs-on: ubuntu-latest
|
2022-03-30 11:12:52 +03:00
|
|
|
steps:
|
2022-03-23 16:10:39 +02:00
|
|
|
- name: Checkout repository
|
2022-10-11 06:27:58 +03:00
|
|
|
uses: actions/checkout@v3.1.0
|
2022-06-14 17:25:48 +03:00
|
|
|
- name: Setup node
|
2022-10-15 12:43:55 +03:00
|
|
|
uses: actions/setup-node@v3.5.1
|
2022-06-14 17:25:48 +03:00
|
|
|
with:
|
|
|
|
node-version: 17.9.0
|
2022-09-07 11:16:44 +03:00
|
|
|
cache: 'npm'
|
|
|
|
- name: Install dependencies
|
|
|
|
run: npm ci
|
|
|
|
- name: Build app
|
|
|
|
run: npm run build
|
|
|
|
- name: Deploy to Netlify
|
2022-10-15 12:46:01 +03:00
|
|
|
uses: nwtgck/actions-netlify@ac1cb16858bada08a9c71a81240a85cfc3f72913
|
2021-09-01 18:31:24 +03:00
|
|
|
with:
|
2022-09-07 11:16:44 +03: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 18:31:24 +03:00
|
|
|
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
|
|
|
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE2_ID }}
|
2022-09-07 11:16:44 +03:00
|
|
|
timeout-minutes: 1
|