Skip to content

Deploy to GitHub Pages #1344

Deploy to GitHub Pages

Deploy to GitHub Pages #1344

name: Deploy to GitHub Pages
on:
push:
branches:
- master
schedule:
- cron: '0 15 * * *'
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
- 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