Skip to content

0.1.3

0.1.3 #10

Workflow file for this run

name: Deploy GitHub Pages
on:
push:
tags:
- 'v*'
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: voidzero-dev/setup-vp@v1
with:
node-version: '24'
cache: true
- run: vp install
# GitHub Pages 没有服务端,/api/cqut/preview 无法运行,adapter-static 也无法
# 预渲染这个 POST 接口,构建前把它移除,仅影响本次临时 checkout。
- run: rm -rf src/routes/api
- run: vp run build:pages
- uses: actions/upload-pages-artifact@v3
with:
path: build
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4