-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update publish-to-test-pypi.yml * Create rebuild_docs.yml
- Loading branch information
Showing
2 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Rebuild Docs on ReadTheDocs | ||
|
||
on: | ||
# Trigger the workflow on push to the dev branch | ||
push: | ||
branches: | ||
- dev | ||
# Optionally trigger on pull request merges | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
trigger-docs-build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Trigger documentation rebuild on Read the Docs | ||
env: | ||
# Set your environment variables for the request | ||
READTHEDOCS_API_TOKEN: ${{ secrets.READTHEDOCS_API_TOKEN }} | ||
READTHEDOCS_PROJECT_SLUG: bexhoma | ||
run: | | ||
# Use curl to trigger the RTD build | ||
curl -X POST \ | ||
-H "Authorization: Token ${READTHEDOCS_API_TOKEN}" \ | ||
https://readthedocs.org/api/v3/projects/${READTHEDOCS_PROJECT_SLUG}/versions/latest/builds/ |