forked from bia-pain-bache/BPB-Worker-Panel
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d2bbf38
commit 6493faf
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: zip_flows # 工作流程的名称 | ||
|
||
on: | ||
workflow_dispatch: # 手动触发 | ||
push: | ||
paths: | ||
- '_worker.js' # 当 _worker.js 文件发生变动时触发 | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
package-and-commit: | ||
runs-on: ubuntu-latest # 运行环境,这里使用最新版本的 Ubuntu | ||
steps: | ||
- name: Checkout Repository # 检出代码 | ||
uses: actions/checkout@v2 | ||
|
||
- name: Zip the worker file # 将 _worker.js 文件打包成 worker.js.zip | ||
run: zip _worker.js.zip _worker.js | ||
|
||
- name: Commit and push the packaged file # 提交并推送打包后的文件 | ||
uses: EndBug/add-and-commit@v7 | ||
with: | ||
add: '_worker.js.zip' | ||
message: 'Automatically package and commit _worker.js.zip' | ||
author_name: github-actions[bot] | ||
author_email: actions[bot]@users.noreply.github.com | ||
token: ${{ secrets.GH_TOKEN }} |