Skip to content

Pages

Pages #603

Workflow file for this run

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