Skip to content

chore(deps): update dawidd6/action-download-artifact action to v13 #50

chore(deps): update dawidd6/action-download-artifact action to v13

chore(deps): update dawidd6/action-download-artifact action to v13 #50

Workflow file for this run

name: build
on:
workflow_call:
pull_request:
branches:
- main
jobs:
build:
name: 构建文档
runs-on: ubuntu-latest
steps:
- name: Setup JS
uses: zotero-plugin-dev/workflows/setup-js@main
- name: 构建文档
env:
NODE_OPTIONS: --max_old_space_size=8192
run: |-
pnpm run docs:build
- name: 压缩构建文件
run: tar -cvf dist.tar .vitepress/dist
- name: 上传构建结果
uses: actions/upload-artifact@v5
with:
name: build-result
path: |
dist.tar
- name: 保存 PR 编号
if: always() && github.repository == 'zotero-chinese/wiki' && github.event_name == 'pull_request'
run: |
echo "${{ github.event.number }}" > pr_num
- name: 上传 PR 编号
if: always() && github.repository == 'zotero-chinese/wiki' && github.event_name == 'pull_request'
uses: actions/upload-artifact@v5
with:
name: pr-num
path: ./pr_num