From f6ab16e97f20df56530b6e942141335f4c584519 Mon Sep 17 00:00:00 2001 From: Xeek <6032840+x3ek@users.noreply.github.com> Date: Sat, 4 Jul 2026 16:39:12 -0500 Subject: [PATCH] ci(release): auto-deploy the site on minor and major releases When a release with a zero patch digit publishes, dispatch the content repo's deploy workflow so squishmark.dev picks up deliberate releases on its own. Patch releases stay manual by design. Co-Authored-By: Claude Fable 5 --- .github/workflows/release-please.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index f811d22..c9701e8 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -44,3 +44,19 @@ jobs: token: ${{ secrets.RELEASE_PLEASE_TOKEN || github.token }} config-file: release-please-config.json manifest-file: .release-please-manifest.json + + # Minor and major releases (x.y.0) roll to squishmark.dev automatically; + # patch releases wait for the content repo's manual deploy button. + deploy-site: + needs: release-please + if: needs.release-please.outputs.release_created == 'true' && endsWith(needs.release-please.outputs.version, '.0') + runs-on: ubuntu-latest + steps: + - name: Dispatch site deploy + env: + GH_TOKEN: ${{ secrets.CONTENT_DISPATCH_TOKEN }} + VERSION: ${{ needs.release-please.outputs.version }} + run: | + gh api -X POST repos/xeek-dev/squishmark-content/dispatches \ + -f event_type=engine-release \ + -f "client_payload[version]=${VERSION}"