-
Notifications
You must be signed in to change notification settings - Fork 36
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
anson
committed
Oct 5, 2024
0 parents
commit 424c121
Showing
5 changed files
with
959 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 }} |
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,23 @@ | ||
.DS_Store | ||
node_modules | ||
/dist | ||
|
||
|
||
# local env files | ||
.env.local | ||
.env.*.local | ||
|
||
# Log files | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
|
||
# Editor directories and files | ||
.idea | ||
.vscode | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? |
Oops, something went wrong.