2022-12-14 05:17:10 +00:00
|
|
|
name: Deploy to Netlify (dev)
|
2021-09-01 15:31:24 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2024-04-24 14:31:01 +00:00
|
|
|
- dev
|
2021-09-01 15:31:24 +00:00
|
|
|
|
|
|
|
jobs:
|
2022-03-23 14:10:39 +00:00
|
|
|
deploy-to-netlify:
|
2022-12-14 05:17:10 +00:00
|
|
|
name: Deploy to Netlify
|
2021-09-01 15:31:24 +00:00
|
|
|
runs-on: ubuntu-latest
|
2022-03-30 08:12:52 +00:00
|
|
|
steps:
|
2022-03-23 14:10:39 +00:00
|
|
|
- name: Checkout repository
|
2024-05-12 04:39:43 +00:00
|
|
|
uses: actions/checkout@v4.1.5
|
2022-06-14 14:25:48 +00:00
|
|
|
- name: Setup node
|
2024-04-25 12:56:29 +00:00
|
|
|
uses: actions/setup-node@v4.0.2
|
2022-06-14 14:25:48 +00:00
|
|
|
with:
|
2024-04-24 14:31:01 +00:00
|
|
|
node-version: 20.12.2
|
|
|
|
cache: 'npm'
|
2022-09-07 08:16:44 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
run: npm ci
|
|
|
|
- name: Build app
|
2023-03-29 03:17:00 +00:00
|
|
|
env:
|
2024-04-24 14:31:01 +00:00
|
|
|
NODE_OPTIONS: '--max_old_space_size=4096'
|
2022-09-07 08:16:44 +00:00
|
|
|
run: npm run build
|
|
|
|
- name: Deploy to Netlify
|
2024-04-25 13:06:24 +00:00
|
|
|
uses: nwtgck/actions-netlify@4cbaf4c08f1a7bfa537d6113472ef4424e4eb654
|
2021-09-01 15:31:24 +00:00
|
|
|
with:
|
2022-09-07 08:16:44 +00:00
|
|
|
publish-dir: dist
|
2024-04-24 14:31:01 +00:00
|
|
|
deploy-message: 'Dev deploy ${{ github.sha }}'
|
2022-09-07 08:16:44 +00:00
|
|
|
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 15:31:24 +00:00
|
|
|
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
2022-12-14 05:17:10 +00:00
|
|
|
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID_DEV }}
|
2022-09-07 08:16:44 +00:00
|
|
|
timeout-minutes: 1
|