Skip to content

CD: mainへのpushで自動デプロイするGitHub Actionsを追加 - #7

Merged
rin2yh merged 20 commits into
mainfrom
claude/deploy-verification-steps-lepg0h
Jul 25, 2026
Merged

CD: mainへのpushで自動デプロイするGitHub Actionsを追加#7
rin2yh merged 20 commits into
mainfrom
claude/deploy-verification-steps-lepg0h

Conversation

@rin2yh

@rin2yh rin2yh commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

概要

main への push で Cloudflare Worker を自動デプロイする GitHub Actions(.github/workflows/deploy.yml)を追加。

Closes #8

設計判断

  • typecheck/test は既存 CI(ci.yml)に任せ、deploy 側では再実行しない
    • ツールチェーンは CI と同じ mise-action に統一
  • シークレットは .env.yamlENV_YAML secret)を単一ソースにする
    • CD でも gen:dev-varswrangler secret bulk で Worker へ反映
    • deploy と同じジョブで投入し、environment は使わない

レビュー観点

内部品質

(特になし)

外部品質

(特になし)

補足

  • 必要な repository secrets
    • CLOUDFLARE_API_TOKEN
    • ENV_YAML.env.yaml の中身そのまま)

claude added 20 commits July 20, 2026 11:35
Deploy on push to main after typecheck and test pass. Secrets and Email
Routing are provisioned out-of-band; this deploys code only. Requires a
CLOUDFLARE_API_TOKEN repository secret with Workers edit permission.
Store the whole .env.yaml as a single ENV_YAML secret and reuse loadConfig
(gen:secrets) in the deploy workflow to build the wrangler secret bulk input,
instead of maintaining a separate pre-stringified JSON secret per key.
wrangler secret bulk accepts dotenv (KEY=VALUE) files, so the existing
gen:dev-vars output is uploaded directly. Removes the redundant gen:secrets
script and .secrets.json artifact.
oxfmt formatting on README. Switch deploy trigger from workflow_run to
push:main and set mise-action cache:false to clear zizmor dangerous-triggers
and cache-poisoning findings without suppressions.
@rin2yh
rin2yh marked this pull request as ready for review July 25, 2026 02:32
@rin2yh
rin2yh merged commit ae67f07 into main Jul 25, 2026
3 checks passed
@rin2yh
rin2yh deleted the claude/deploy-verification-steps-lepg0h branch July 25, 2026 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

デプロイ: mainマージで自動デプロイするCDを構築

2 participants