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 9e04f14a7b
)
Cette révision appartient à :
Parent
91712daee8
révision
f77ade7dda
1 fichiers modifiés avec 10 ajouts et 0 suppressions
10
.github/workflows/build_push.yml
externe
10
.github/workflows/build_push.yml
externe
|
@ -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 }}
|
||||
|
|
Référencer dans un nouveau ticket