From ca21e2c95716d85528046513955e2aeef63c6fdb Mon Sep 17 00:00:00 2001 From: Sh031224 <1cktmdgh2@gmail.com> Date: Thu, 21 May 2026 15:41:21 +0900 Subject: [PATCH 1/2] ci: add auto docs sync/deploy workflow on release published MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 릴리즈가 publish되면 montage-web의 docs-sync 워크플로를 호출해 문서를 동기화하고, 변경사항이 있을 경우 sync 브랜치에서 docs-deploy를 트리거하도록 자동화한다. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/auto-deploy-docs.yml | 35 ++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/auto-deploy-docs.yml diff --git a/.github/workflows/auto-deploy-docs.yml b/.github/workflows/auto-deploy-docs.yml new file mode 100644 index 00000000..8984bb72 --- /dev/null +++ b/.github/workflows/auto-deploy-docs.yml @@ -0,0 +1,35 @@ +name: Auto Docs Sync/Deploy on Release + +on: + release: + types: [published] + +jobs: + sync: + uses: wanteddev/montage-web/.github/workflows/docs-sync.yml@main + secrets: inherit + + deploy: + needs: sync + if: needs.sync.outputs.has_changes == 'true' + runs-on: ubuntu-latest + steps: + - name: Generate GitHub App Token + id: app-token + uses: actions/create-github-app-token@v1 + with: + app-id: ${{ secrets.BOT_APP_ID }} + private-key: ${{ secrets.BOT_APP_PRIVATE_KEY }} + owner: wanteddev + repositories: montage-web + + - name: Trigger docs-deploy on sync branch + env: + GH_TOKEN: ${{ steps.app-token.outputs.token }} + run: | + set -euo pipefail + gh workflow run docs-deploy.yml \ + --repo wanteddev/montage-web \ + --ref "${{ needs.sync.outputs.branch }}" \ + -f server_type=www \ + -f algolia=true From becc5ecde95e7aead280686ba62a0bdcf83c50bd Mon Sep 17 00:00:00 2001 From: Sh031224 <1cktmdgh2@gmail.com> Date: Thu, 28 May 2026 16:50:35 +0900 Subject: [PATCH 2/2] ci: trigger docs-sync workflow directly with deploy flag Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/auto-deploy-docs.yml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/auto-deploy-docs.yml b/.github/workflows/auto-deploy-docs.yml index 8984bb72..a8afc1c4 100644 --- a/.github/workflows/auto-deploy-docs.yml +++ b/.github/workflows/auto-deploy-docs.yml @@ -5,13 +5,7 @@ on: types: [published] jobs: - sync: - uses: wanteddev/montage-web/.github/workflows/docs-sync.yml@main - secrets: inherit - - deploy: - needs: sync - if: needs.sync.outputs.has_changes == 'true' + sync-and-deploy: runs-on: ubuntu-latest steps: - name: Generate GitHub App Token @@ -28,8 +22,8 @@ jobs: GH_TOKEN: ${{ steps.app-token.outputs.token }} run: | set -euo pipefail - gh workflow run docs-deploy.yml \ + gh workflow run docs-sync.yml \ --repo wanteddev/montage-web \ - --ref "${{ needs.sync.outputs.branch }}" \ - -f server_type=www \ - -f algolia=true + --ref "main" \ + -f platform=mobile \ + -f deploy=true