Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

Deploy to GitHub Pages #5943

Deploy to GitHub Pages

Deploy to GitHub Pages #5943

name: Deploy to GitHub Pages
on:
push:
branches:
- master
schedule:
- cron: '0 12,15,18,21 * * *'
workflow_dispatch:
permissions:
contents: write
concurrency:
group: gh-pages-workflow
cancel-in-progress: true
jobs:
deploy-pages:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: npm
- name: Install dependencies, test, and build
run: |
npm ci
npm test
npm run build
env:
GOOGLE_CLIENT_EMAIL: ${{ secrets.GOOGLE_CLIENT_EMAIL }}
GOOGLE_PRIVATE_KEY: ${{ secrets.GOOGLE_PRIVATE_KEY }}v
GOOGLE_SHEET_ID: ${{ secrets.GOOGLE_SHEET_ID }}
- name: Clean build output
run: rm dist/report.html
- name: Deploy master to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist
clean: true
single-commit: true