Skip to content

feat: use GHA to deploy pages (#75) #42

feat: use GHA to deploy pages (#75)

feat: use GHA to deploy pages (#75) #42

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16.x
cache: yarn
- name: Build website
run: |
yarn install --frozen-lockfile
yarn build
- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: ./build
release:
runs-on: ubuntu-latest
permissions:
id-token: write
pages: write
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4