File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 1414 paths :
1515 - ' docs/**'
1616
17+ env :
18+ RTDS_ADS_PROJECT : https://readthedocs.org/api/v3/projects/accelerated-data-science
19+ RTDS_ADS_TOKEN : ${{ secrets.RTDS_ADS_TOKEN }}
20+
1721jobs :
1822 build-n-publish :
1923 name : Build and publish Docs 📖 to Readthedocs
2024 runs-on : ubuntu-latest
2125
2226 steps :
2327 - name : When PR ✅ merged - Trigger Readthedocs build
24- if : 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+ if : github.event_name == 'pull_request_target' && github.event.pull_request.merged == true
2829 run : |
2930 curl \
3031 -X POST \
3132 -H "Authorization: Token $RTDS_ADS_TOKEN" $RTDS_ADS_PROJECT/versions/latest/builds/
3233 - name : When tag 🏷️ pushed - Trigger Readthedocs build
33- if : github.event_name != 'pull_request'
34- env :
35- RTDS_ADS_PROJECT : https://readthedocs.org/api/v3/projects/accelerated-data-science
36- RTDS_ADS_TOKEN : ${{ secrets.RTDS_ADS_TOKEN }}
34+ if : github.event_name == 'push' && startsWith(github.ref_name, 'v')
3735 run : |
3836 curl \
3937 -X POST \
You can’t perform that action at this time.
0 commit comments