Skip to content

Commit 9f543a6

Browse files
docs: Add deploy hook call for updating docs on render
Signed-off-by: Bernhard Kaindl <[email protected]>
1 parent 8e7e5c0 commit 9f543a6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,14 @@ jobs:
9292
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9393
run: pip install coveralls && coveralls --service=github
9494
continue-on-error: true # Coveralls.io is currently overloaded
95+
96+
- name: Render docs if master was updated and the deploy_webhook_url is set
97+
# See https://render.com/docs/deploy-hooks on how to deploy using a webhook:
98+
env:
99+
docs_deploy_branch: refs/heads/master
100+
deploy_webhook_url: ${{ secrets.RENDER_DEPLOY_HOOK_URL }}
101+
if: |
102+
env.deploy_webhook_url && github.ref == env.docs_deploy_branch &&
103+
matrix.python-version == env.PYTHON_VERSION_USED_FOR_COVERAGE
104+
run: |
105+
curl "$deploy_webhook_url"

0 commit comments

Comments
 (0)