Skip to content

Merge pull request #34 from zhangchi0104/dev #39

Merge pull request #34 from zhangchi0104/dev

Merge pull request #34 from zhangchi0104/dev #39

Workflow file for this run

name: Deploy to Github Pages
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: 8
- name: Install Deps
run: pnpm install
- name: Build website
run: pnpm build
- name: Upload GitHub Pages artifact
uses: actions/[email protected]
with:
path: dist
deploy:
# Add a dependency to the build job
needs: build
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2