File tree Expand file tree Collapse file tree 1 file changed +6
-15
lines changed Expand file tree Collapse file tree 1 file changed +6
-15
lines changed Original file line number Diff line number Diff line change 5
5
push :
6
6
tags :
7
7
- ' v*.*.*'
8
- # Auto-trigger this workflow on merge to main changes in docs/** folder
9
- pull_request_target :
10
- types :
11
- - closed
12
- branches :
13
- - main
14
- paths :
15
- - ' docs/**'
16
8
17
9
env :
18
10
RTDS_ADS_PROJECT : https://readthedocs.org/api/v3/projects/accelerated-data-science
@@ -24,17 +16,16 @@ jobs:
24
16
runs-on : ubuntu-latest
25
17
26
18
steps :
27
- - name : When PR ✅ merged - Trigger Readthedocs build
28
- if : github.event_name == 'pull_request_target ' && github.event.pull_request.merged == true
19
+ - name : When tag 🏷️ pushed - Trigger Readthedocs build
20
+ if : github.event_name == 'push ' && startsWith( github.ref_name, 'v')
29
21
run : |
22
+ # trigger build/publish of latest version
30
23
curl \
31
24
-X POST \
32
25
-H "Authorization: Token $RTDS_ADS_TOKEN" $RTDS_ADS_PROJECT/versions/latest/builds/
33
- - name : When tag 🏷️ pushed - Trigger Readthedocs build
34
- if : github.event_name == 'push' && startsWith(github.ref_name, 'v')
35
- run : |
36
- # add 10 minutes wait time for readthedocs see freshly created tag
37
- sleep 10m
26
+ # add 15 minutes wait time for readthedocs see freshly created tag
27
+ sleep 15m
28
+ # trigger build/publish of v*.*.* version
38
29
curl \
39
30
-X POST \
40
31
-H "Authorization: Token $RTDS_ADS_TOKEN" $RTDS_ADS_PROJECT/versions/${{ github.ref_name }}/builds/
You can’t perform that action at this time.
0 commit comments