Skip to content

docs: 调整说明文案 #17

docs: 调整说明文案

docs: 调整说明文案 #17

Workflow file for this run

name: Github Pages
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Use Pnpm
uses: pnpm/[email protected]
with:
version: 9
run_install: false
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build
- name: Upload artifact
id: upload-artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./dist
deploy:
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to Github Pages
id: deployment
uses: actions/deploy-pages@v4