🐞 fix(修复因抖音更新导致屏蔽视频内元素失败的问题): #69
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: 抖音优化 | |
on: | |
push: | |
branches: ["master"] | |
paths: | |
- "packages/抖音优化/**" | |
- ".github/workflows/抖音优化.yaml" | |
- "!packages/抖音优化/README.md" | |
- "!packages/抖音优化/dist/*" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: set git | |
run: | | |
git config --global core.symlinks false | |
- name: 校验 | |
uses: actions/checkout@v4 | |
- uses: volta-cli/action@v4 | |
- name: 设置Node和pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- name: 构建 | |
run: | | |
cd ./packages/抖音优化 | |
echo "当前目录:"$(pwd) | |
pnpm install | |
pnpm run build | |
- name: 上传附件 | |
uses: actions/upload-artifact@main | |
with: | |
name: 抖音优化 | |
path: ./packages/抖音优化/dist |