From f77ade7dda60e0e72e704d53d57f16ecae61e40c Mon Sep 17 00:00:00 2001 From: Soitora Date: Sun, 17 Sep 2023 18:08:12 +0200 Subject: [PATCH] Run Netlify Build Hook after Release (#9937) * Run Netlify Build Hook after Release * Add if statement * Move if statement to job level instead of step (cherry picked from commit 9e04f14a7be6e3fa069b90a9577798d661fe2c9a) --- .github/workflows/build_push.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/build_push.yml b/.github/workflows/build_push.yml index 5bea25988b..13b54a0a21 100644 --- a/.github/workflows/build_push.yml +++ b/.github/workflows/build_push.yml @@ -104,3 +104,13 @@ jobs: prerelease: false env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + update-website: + needs: [build] + runs-on: ubuntu-latest + if: startsWith(github.ref, 'refs/tags/') && github.repository == 'tachiyomiorg/tachiyomi' + steps: + - name: Trigger Netlify build hook + run: curl -s -X POST -d {} "https://api.netlify.com/build_hooks/${TOKEN}" + env: + TOKEN: ${{ secrets.NETLIFY_HOOK_RELEASE }}