Skip to content

Deploy to GitHub Pages #271

Deploy to GitHub Pages

Deploy to GitHub Pages #271

Workflow file for this run

name: Deploy to GitHub Pages
on:
workflow_run:
workflows:
- CI
branches:
- main
types:
- completed
jobs:
deploy:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: lts/*
cache: npm
- name: npm ci
run: npm ci
- name: npm run build
run: npm run build
- uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: dist