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