File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 13
13
- main
14
14
paths :
15
15
- ' docs/**'
16
+ env :
17
+ RTDS_ADS_PROJECT : https://readthedocs.org/api/v3/projects/accelerated-data-science
18
+ RTDS_ADS_TOKEN : ${{ secrets.RTDS_ADS_TOKEN }}
16
19
17
20
jobs :
18
21
build-n-publish :
@@ -22,18 +25,12 @@ jobs:
22
25
steps :
23
26
- name : When PR ✅ merged - Trigger Readthedocs build
24
27
if : github.event_name == 'pull_request_target' && github.event.pull_request.merged == true
25
- env :
26
- RTDS_ADS_PROJECT : https://readthedocs.org/api/v3/projects/accelerated-data-science
27
- RTDS_ADS_TOKEN : ${{ secrets.RTDS_ADS_TOKEN }}
28
28
run : |
29
29
curl \
30
30
-X POST \
31
31
-H "Authorization: Token $RTDS_ADS_TOKEN" $RTDS_ADS_PROJECT/versions/latest/builds/
32
32
- name : When tag 🏷️ pushed - Trigger Readthedocs build
33
33
if : github.event_name == 'push' && startsWith(github.ref_name, 'v')
34
- env :
35
- RTDS_ADS_PROJECT : https://readthedocs.org/api/v3/projects/accelerated-data-science
36
- RTDS_ADS_TOKEN : ${{ secrets.RTDS_ADS_TOKEN }}
37
34
run : |
38
35
curl \
39
36
-X POST \
You can’t perform that action at this time.
0 commit comments