Skip to content

Commit 6544ca8

Browse files
committed
ODSC-37153. Action to autot-trigger docs build in readthedocs
- added workflow publish-to-readthedocs.yml
1 parent 89c6038 commit 6544ca8

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: "Publish Docs"
2+
3+
on:
4+
# Auto-trigger this workflow on tag creation
5+
push:
6+
tags:
7+
- 'v*.*.*'
8+
9+
jobs:
10+
build-n-publish:
11+
name: Build and publish Docs 📖 to Readthedocs
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Trigger Readthedocs build
16+
env:
17+
RTDS_ADS_PROJECT: https://readthedocs.org/api/v3/projects/accelerated-data-science
18+
RTDS_ADS_TOKEN: ${{ secrets.RTDS_ADS_TOKEN }}
19+
run: |
20+
curl \
21+
-X POST \
22+
-H "Authorization: Token $RTDS_ADS_TOKEN" $RTDS_ADS_PROJECT/versions/${{ github.ref_name }}/builds/

0 commit comments

Comments
 (0)