-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (36 loc) · 924 Bytes
/
deploy.yml
File metadata and controls
46 lines (36 loc) · 924 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Deploy to GitHub Pages
on:
push:
branches: [main]
workflow_dispatch:
schedule:
# Daily at 02:00 UTC — ensures deadline-based layout changes are reflected without a code push
- cron: "0 2 * * *"
permissions:
contents: write
concurrency:
group: pages
cancel-in-progress: true
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
- run: npm ci
- run: npm run build
- run: cp dist/client/404/index.html dist/client/404.html
- name: Deploy to gh-pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: dist/client
force: false
clean: true
clean-exclude: |
pr-preview/