File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 11
11
name : Deploy DataFusion Python site
12
12
13
13
jobs :
14
+ debug-github-context :
15
+ name : Print github context
16
+ runs-on : ubuntu-latest
17
+ steps :
18
+ - name : Dump GitHub context
19
+ env :
20
+ GITHUB_CONTEXT : ${{ toJson(github) }}
21
+ run : |
22
+ echo "$GITHUB_CONTEXT"
14
23
build-docs :
15
24
name : Build docs
16
25
runs-on : ubuntu-latest
17
26
steps :
18
27
- name : Set target branch
19
- if : github.event_name == 'push' && github.ref == 'refs/heads/main'
28
+ if : github.event_name == 'push' && ( github.ref == 'refs/heads/main' || github.ref_type == 'tag')
20
29
id : target-branch
21
30
run : |
22
31
set -x
31
40
- name : Checkout docs sources
32
41
uses : actions/checkout@v3
33
42
- name : Checkout docs target branch
34
- if : github.event_name == 'push' && github.ref == 'refs/heads/main'
43
+ if : github.event_name == 'push' && ( github.ref == 'refs/heads/main' || github.ref_type == 'tag')
35
44
uses : actions/checkout@v3
36
45
with :
37
46
fetch-depth : 0
69
78
make html
70
79
71
80
- name : Copy & push the generated HTML
72
- if : github.event_name == 'push' && github.ref == 'refs/heads/main'
81
+ if : github.event_name == 'push' && ( github.ref == 'refs/heads/main' || github.ref_type == 'tag')
73
82
run : |
74
83
set -x
75
84
cd docs-target
You can’t perform that action at this time.
0 commit comments