mirror of
https://github.com/anduinnn/2fa.git
synced 2026-04-26 01:35:49 +03:00
[PR #1] [MERGED] Feat: GitHub Action deployment support #1
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/2fa#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/anduinnn/2fa/pull/1
Author: @qaz741wsd856
Created: 1/14/2026
Status: ✅ Merged
Merged: 1/15/2026
Merged by: @anduinnn
Base:
main← Head:add/github-action-deploy📝 Commits (2)
6037e8cadd - GitHub Actions 一键部署支持6d5f50afix - 手动指定wrangler版本📊 Changes
4 files changed (+70 additions, -9 deletions)
View changed files
➕
.github/workflows/deploy-worker.yml(+26 -0)📝
README.md(+18 -3)📝
README_EN.md(+19 -4)📝
wrangler.toml(+7 -2)📄 Description
添加Github Action 一键部署支持
添加用于自动部署到 Cloudflare Worker 的 GitHub Actions 工作流,支持在 push 到
main时或手动触发时自动部署 Worker。变更说明
.github/workflows/deploy-worker.yml:新增 workflow,使用cloudflare/wrangler-action@v3执行wrangler deploy,触发器为 push 到main与手动 dispatch。需要在仓库 Secrets 中配置:CLOUDFLARE_API_TOKEN与CLOUDFLARE_ACCOUNT_ID。README.md:更新 GitHub Actions 的说明。README_EN.md:英文说明同步更新。wrangler.toml:注释kv的id和预览id。其他说明
OWNER/REPO);该方法操作简单,无需配置密钥,但无法一键同步上游的更新,建议fork后用github action部署。🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.