Skip to content

Publish site to GitHub Pages #1

Publish site to GitHub Pages

Publish site to GitHub Pages #1

Workflow file for this run

name: Publish site to GitHub Pages
on:
workflow_dispatch:
jobs:
publish-site-to-gh-pages:
name: Publish site to GitHub Pages
runs-on: ubuntu-latest
environment: github-pages
permissions:
contents: write
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install npm dependencies
run: yarn --immutable
- name: Run build script
run: yarn workspace site run
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: packages/site/build