update realease ci #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Page | |
on: | |
push: | |
branches: [master] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
# Build job | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # Not needed if lastUpdated is not enabled | |
# - uses: pnpm/action-setup@v3 # Uncomment this block if you're using pnpm | |
# with: | |
# version: 9 # Not needed if you've set "packageManager" in package.json | |
# - uses: oven-sh/setup-bun@v1 # Uncomment this if you're using Bun | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: npm # or pnpm / yarn | |
- name: Install dependencies | |
run: npm install | |
- name: Build with VitePress | |
run: npm run docs:build | |
- name: Upload artifact | |
env: | |
ALIYUN_ACCESS_KEY_ID: ${{ secrets.ALIYUN_ACCESS_KEY_ID }} | |
ALIYUN_ACCESS_KEY_SECRET: ${{ secrets.ALIYUN_ACCESS_KEY_SECRET }} | |
run: node tools/upload.js --page |