From 421397c8b57fc9281100a7bdba139e0ed3aff0dd Mon Sep 17 00:00:00 2001 From: Heppu Date: Wed, 27 May 2026 14:24:22 +0300 Subject: [PATCH 1/2] Dispatch website Deploy once after tag job succeeds --- .github/workflows/go.yaml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index 1117e1b..5ee92b2 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -119,16 +119,29 @@ jobs: [ -z "$tag" ] && exit 0 git ls-remote --exit-code origin "refs/tags/$tag" >/dev/null 2>&1 || git push origin "$tag" + website: + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && needs.discover.outputs.changed != '[]' }} + needs: + - discover + - tag + runs-on: ubuntu-latest + steps: + - env: + GH_TOKEN: ${{ secrets.BOT_TOKEN }} + run: gh workflow run deploy.yml -R go-srvc/website + ci: needs: - discover - test - tag + - website if: always() runs-on: ubuntu-latest steps: - name: Verify run: | [ "${{ needs.discover.result }}" = "success" ] || exit 1 - case "${{ needs.test.result }}" in success|skipped) ;; *) exit 1 ;; esac - case "${{ needs.tag.result }}" in success|skipped) ;; *) exit 1 ;; esac + case "${{ needs.test.result }}" in success|skipped) ;; *) exit 1 ;; esac + case "${{ needs.tag.result }}" in success|skipped) ;; *) exit 1 ;; esac + case "${{ needs.website.result }}" in success|skipped) ;; *) exit 1 ;; esac From c767c1f56ca65a88de6d8f9b9830959e42b67e64 Mon Sep 17 00:00:00 2001 From: Heppu Date: Thu, 28 May 2026 07:22:44 +0300 Subject: [PATCH 2/2] Inline website Deploy trigger as last step of tag job --- .github/workflows/go.yaml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index 5ee92b2..fb58f51 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -119,14 +119,8 @@ jobs: [ -z "$tag" ] && exit 0 git ls-remote --exit-code origin "refs/tags/$tag" >/dev/null 2>&1 || git push origin "$tag" - website: - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && needs.discover.outputs.changed != '[]' }} - needs: - - discover - - tag - runs-on: ubuntu-latest - steps: - - env: + - name: Trigger website Deploy + env: GH_TOKEN: ${{ secrets.BOT_TOKEN }} run: gh workflow run deploy.yml -R go-srvc/website @@ -135,13 +129,11 @@ jobs: - discover - test - tag - - website if: always() runs-on: ubuntu-latest steps: - name: Verify run: | [ "${{ needs.discover.result }}" = "success" ] || exit 1 - case "${{ needs.test.result }}" in success|skipped) ;; *) exit 1 ;; esac - case "${{ needs.tag.result }}" in success|skipped) ;; *) exit 1 ;; esac - case "${{ needs.website.result }}" in success|skipped) ;; *) exit 1 ;; esac + case "${{ needs.test.result }}" in success|skipped) ;; *) exit 1 ;; esac + case "${{ needs.tag.result }}" in success|skipped) ;; *) exit 1 ;; esac