Skip to content

Github Pages

Github Pages #1

Workflow file for this run

name: Github Pages
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: write
id-token: write
pages: write
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: 🛎️ Checkout
uses: actions/checkout@v3
- name: 🐧 Use Node.js v16.x
uses: actions/setup-node@v3
with:
node-version: v16.x
cache: 'yarn'
- run: yarn
- run: yarn build
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload entire repository
path: './build'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1