Skip to content

Deploy To GitHub Pages #189

Deploy To GitHub Pages

Deploy To GitHub Pages #189

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