We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1feef7a commit a246dffCopy full SHA for a246dff
.github/workflows/update-docs.yml
@@ -81,9 +81,16 @@ jobs:
81
--arg description "${{ github.event.repository.description }}" \
82
'{default_branch: $default_branch}')
83
84
+ # change the default branch to the latest release
85
curl \
86
-X PATCH \
87
-H "Authorization: Token ${RTD_TOKEN}" \
- https://readthedocs.org/api/v3/projects/${RTD_SLUG}/ \
88
-H "Content-Type: application/json" \
89
+ https://readthedocs.org/api/v3/projects/${RTD_SLUG}/ \
90
-d "$json_body"
91
+
92
+ # trigger a build for the latest version
93
+ curl \
94
+ -X POST \
95
+ -H "Authorization: Token ${RTD_TOKEN}" \
96
+ https://readthedocs.org/api/v3/projects/${RTD_SLUG}/versions/latest/builds/
0 commit comments