feat: Web ホスティング向けデプロイ・アンデプロイ用の Composite Actions と Reusable Workflows を追加#38
Merged
kryota-dev merged 10 commits intomainfrom Mar 2, 2026
Merged
feat: Web ホスティング向けデプロイ・アンデプロイ用の Composite Actions と Reusable Workflows を追加#38kryota-dev merged 10 commits intomainfrom
kryota-dev merged 10 commits intomainfrom
Conversation
- deploy-ftp: lftp を使用した FTP サーバーへのデプロイ - deploy-rsync: rsync over SSH を使用したサーバーへのデプロイ - delete-ftp: lftp を使用した FTP サーバーからのディレクトリ削除 - delete-rsync: rsync over SSH を使用したリモートディレクトリ削除 - 各 Action のドキュメントを追加 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- deploy-server: FTP/rsync でのデプロイ、PR コメント、Slack 通知を統合 - delete-server: FTP/rsync でのプレビュー環境削除、PR コメント通知を統合 - 各 Workflow のドキュメントを追加 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- DeepWiki エンドポイント URL を /sse から /mcp に変更 - Serena project.yml に language_backend 設定コメントを追加 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- deploy-ftp → deploy-web-hosting-ftp - deploy-rsync → deploy-web-hosting-rsync - delete-ftp → undeploy-web-hosting-ftp - delete-rsync → undeploy-web-hosting-rsync - deploy-server.yml → deploy-web-hosting.yml - delete-server.yml → undeploy-web-hosting.yml - 各ファイル内の参照パス、name、description、ドキュメントを一括更新 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Actions: step name に web hosting / deploy / undeploy コンテキストを追加 - Workflows: job name と step name を用途に合わせて具体化 - Deploy: "Deploy" → "Deploy to Web Hosting" - Undeploy: "Delete" → "Undeploy from Web Hosting" - Slack 通知・PR コメントに Deploy/Undeploy プレフィックスを付与 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- 要件定義・設計・タスク分解ドキュメントを追加 - 承認スナップショットを追加 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ion を追加 - github コンテキストからブランチ名を自動導出しデプロイパスと本番判定を計算する Composite Action を新規作成 - deploy-web-hosting.yml / undeploy-web-hosting.yml の inputs を簡素化(is-pr, base-path, is-production を削除し base-path-prefix, production-branch, ref-name を追加) - PR 判定を github.event_name ベースに変更 - ドキュメントに Migration Guide を追加 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ion-branch を自動適用 - repository_dispatch イベント時、production-branch の値を ref-name として自動使用 - caller 側での ref-name オーバーライドが不要に(staging 等では引き続きオーバーライド可能) - Action / Workflow ドキュメントの使用例と説明を更新 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- workflow_dispatch 実行時のブランチ選択で ref-name が自動導出されるため不要 - 使用例を簡素化し、説明文を追加 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- undeploy-web-hosting.yml に production-branch input を追加(default: 'main') - compute-web-hosting-deploy-path への production-branch パススルーを設定 - ドキュメントの Inputs テーブルを更新 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
概要
Web ホスティングサーバー向けのデプロイ・アンデプロイ機能を一式追加。FTP(lftp)と rsync over SSH の2方式に対応した Composite Actions と、それらを統合する Reusable Workflows を提供する。
変更内容
新規 Composite Actions(5つ)
compute-web-hosting-deploy-path:githubコンテキストからブランチ名を自動導出し、デプロイパスと本番判定を計算する共通 Action。チェックアウト不要で利用可能deploy-web-hosting-ftp: lftp を使用した FTP サーバーへのデプロイ。dry-run モード・本番モード(.htaccess/_feature/除外)対応deploy-web-hosting-rsync: rsync over SSH によるデプロイ。SSH 鍵の自動セットアップ・クリーンアップ付きundeploy-web-hosting-ftp: lftp を使用した FTP サーバー上のディレクトリ削除undeploy-web-hosting-rsync: rsync(空ディレクトリ同期方式)による リモートディレクトリ削除。親ディレクトリの空判定・削除も自動実行新規 Reusable Workflows(2つ)
deploy-web-hosting.yml: ビルドアーティファクトのダウンロード → デプロイパス計算 → FTP/rsync デプロイ → PR コメント通知 → Slack 通知を統合したデプロイワークフローundeploy-web-hosting.yml: デプロイパス計算 → FTP/rsync 削除 → PR コメント通知 → 過去コメント非表示を統合したアンデプロイワークフロードキュメント(7つ)
各 Action・Workflow に対応する Markdown ドキュメントを
docs/に追加。使用例・Inputs/Outputs 仕様・Migration Guide を含む。その他の変更
.mcp.json: DeepWiki エンドポイント URL を/sse→/mcpに更新.serena/project.yml:language_backend設定コメントを追加設計上のポイント
compute-web-hosting-deploy-pathAction により、caller 側はbase-path-prefixとproduction-branchを渡すだけでデプロイパス・本番判定が自動計算されるgithubコンテキストからの自動導出:pull_request/push/repository_dispatch/workflow_dispatchの各イベントに応じて ref-name を自動導出し、caller 側の条件分岐を不要にしたrepository_dispatch対応:production-branchの値を自動適用。staging 環境ではref-nameでオーバーライド可能.htaccessと_feature/ディレクトリを除外し、フィーチャー環境への影響を防止if: always()で確実に秘密鍵を削除関連 Issue
N/A
チェックリスト
uses:は full commit SHA(40文字)でピン留めし、タグをコメントで記載したpermissionsを最小限で設定したactionlintを実行し、エラーがないことを確認した