Skip to content

Deploy to GitHub Pages #800

Deploy to GitHub Pages

Deploy to GitHub Pages #800

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
cache: npm
check-latest: true
- run: |
npm ci
npm run build
cp install.sh build
- if: github.event_name != 'pull_request'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
keep_files: false
cname: pyrsia.io
user_name: github-actions[bot]
user_email: 41898282+github-actions[bot]@users.noreply.github.com