CD: mainへのpushで自動デプロイするGitHub Actionsを追加 - #7
Merged
Conversation
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.
…ation-steps-lepg0h
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.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
mainへの push で Cloudflare Worker を自動デプロイする GitHub Actions(.github/workflows/deploy.yml)を追加。Closes #8
設計判断
ci.yml)に任せ、deploy 側では再実行しないmise-actionに統一.env.yaml(ENV_YAMLsecret)を単一ソースにするgen:dev-vars→wrangler secret bulkで Worker へ反映environmentは使わないレビュー観点
内部品質
(特になし)
外部品質
(特になし)
補足
CLOUDFLARE_API_TOKENENV_YAML(.env.yamlの中身そのまま)