Skip to content

[pre-commit.ci] pre-commit autoupdate #1006

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #1006

Workflow file for this run

on:
push:
branches:
- master
tags:
- v*
pull_request:
name: Build and deploy on push
jobs:
build:
name: yarn build and deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'yarn'
- run: yarn install
- run: yarn build
- run: ln -s index.html dist/404.html
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: dist
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4