Skip to content

Commit

Permalink
Update zip_flows_src.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
amclubs authored Dec 16, 2024
1 parent 0ec9c76 commit 9dd1a1c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/zip_flows_src.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,17 @@ jobs:
uses: actions/checkout@v2

- name: Zip the worker file # 将 _worker.js 文件打包成 worker.js.zip
run: zip _worker.src.js.zip -j _worker.src.js -O _worker.js
run: |
if [ -f _worker.js ]; then
mv _worker.js _worker.js.bak
fi
cp _worker.src.js _worker.js
# 将 _worker.js 文件压缩到 _worker.src.js.zip 中
zip _worker.src.js.zip _worker.js
rm _worker.js
if [ -f _worker.js.bak ]; then
mv _worker.js.bak _worker.js
fi
- name: Commit and push the packaged file # 提交并推送打包后的文件
uses: EndBug/add-and-commit@v7
Expand Down

0 comments on commit 9dd1a1c

Please sign in to comment.