update: contextmenu function #6
Workflow file for this run
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: dev-v4-ci | |
on: | |
push: | |
paths-ignore: | |
- '**/*.md' | |
branches: | |
- dev-v4 | |
pull_request: | |
branches: | |
- dev-v4 | |
jobs: | |
dev-build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: checkout code | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: install node and pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
# prepare | |
- run: pnpm install | |
# build两个版本 | |
- name: build minify | |
run: pnpm run build:minify | |
- name: mkdir | |
run: mkdir output | |
- name: move and rename file | |
run: mv dist/bilibili-cleaner.user.js output/bilibili-cleaner.min.user.js | |
- name: build default | |
run: pnpm run build | |
- name: copy file | |
run: cp dist/bilibili-cleaner.user.js output/ | |
- name: add doc | |
run: cp LICENSE README.md CHANGELOG.md output/ | |
- name: list files | |
run: ls -lah output/ | |
# 上传产物 | |
- name: upload-artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: bilibili-cleaner | |
path: output/* |