Skip to content

feat: use GHA to deploy pages #41

feat: use GHA to deploy pages

feat: use GHA to deploy pages #41

Workflow file for this run

name: Deploy to GitHub Pages

Check failure on line 1 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: release
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 }}