Pages #685
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pages | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v2.1.5 | |
with: | |
node-version: '16' | |
- name: Checkout Repo | |
uses: actions/checkout@v2.3.4 | |
- name: Cache NPM packages | |
uses: actions/cache@v2.1.6 | |
with: | |
path: ~/.npm/ | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: ${{ runner.os }}-node- | |
- name: Install and Build | |
run: | | |
npm install | |
npm run build | |
env: | |
NODE_ENV: production | |
- name: Deploy | |
uses: JamesIves/github-pages-deploy-action@4.1.4 | |
with: | |
branch: gh-pages | |
folder: static |