2022-12-14 07:17:10 +02: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-12-14 07:17:10 +02: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
|
2023-06-13 02:21:07 +03:00
|
|
|
uses: actions/checkout@v3.5.3
|
2022-06-14 17:25:48 +03:00
|
|
|
- name: Setup node
|
2023-10-23 14:03:00 +03:00
|
|
|
uses: actions/setup-node@v3.8.1
|
2022-06-14 17:25:48 +03:00
|
|
|
with:
|
2022-11-08 16:51:51 +02:00
|
|
|
node-version: 18.12.1
|
2022-12-14 07:17:10 +02:00
|
|
|
cache: "npm"
|
2022-09-07 11:16:44 +03:00
|
|
|
- name: Install dependencies
|
|
|
|
run: npm ci
|
|
|
|
- name: Build app
|
2023-03-29 06:17:00 +03:00
|
|
|
env:
|
|
|
|
NODE_OPTIONS: "--max_old_space_size=4096"
|
2022-09-07 11:16:44 +03:00
|
|
|
run: npm run build
|
|
|
|
- name: Deploy to Netlify
|
2022-12-09 13:22:04 +02:00
|
|
|
uses: nwtgck/actions-netlify@5da65c9f74c7961c5501a3ba329b8d0912f39c03
|
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 }}
|
2022-12-14 07:17:10 +02:00
|
|
|
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID_DEV }}
|
2022-09-07 11:16:44 +03:00
|
|
|
timeout-minutes: 1
|