-
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (43 loc) · 1.12 KB
/
deploy-to-github-pages.yaml
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
name: Deploy To GitHub Pages
on:
# On Commit
push:
branches:
- master
# Every Sunday At 20:00 UTC = Every Monday At 05:00 JST
schedule:
- cron: '0 20 * * 0'
# Manual
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 18.x
- name: Setup npm
run : npm install
env :
NG_CLI_ANALYTICS: ci
- name: Fetch FilmDeX From Google Sheets
run : node ./fetch-filmdex.js
env :
GOOGLE_SHEETS_URL: ${{ secrets.GOOGLE_SHEETS_URL }}
# Bug Fix
NODE_OPTIONS: '--openssl-legacy-provider'
- name: Build
run : npm run build
env :
NG_CLI_ANALYTICS: ci
# Bug Fix
NODE_OPTIONS: '--openssl-legacy-provider'
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
# GITHUB_TOKEN Secret は自動的に生成される
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist