Skip to content

Commit 9197dbf

Browse files
authored
feat: build documentation and set default version when tagging (#103)
1 parent f68d6d3 commit 9197dbf

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/docs.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,14 @@ jobs:
2929
git add .
3030
git commit -m 'docs'
3131
git push origin docs/${{ steps.get-git-tag.outputs.git-tag }} -f
32+
- name: Trigger build of documentation
33+
run: |
34+
curl -X POST -H "Authorization: Token ${{ secrets.RTD_TOKEN }}" https://readthedocs.org/api/v3/projects/eva-python-sdk/versions/docs-${{ steps.get-git-tag.outputs.git-tag }}/builds/
35+
- name: Make new documentation the default version
36+
run: |
37+
curl \
38+
-X PATCH \
39+
-H "Authorization: Token ${{ secrets.RTD_TOKEN }}" https://readthedocs.org/api/v3/projects/eva-python-sdk/ \
40+
-H "Content-Type: application/json" \
41+
-d '{"default_version": "docs-${{ steps.get-git-tag.outputs.git-tag }}"}'
42+

0 commit comments

Comments
 (0)