@@ -69,17 +69,21 @@ jobs:
69
69
with :
70
70
python-version : ' 3.9'
71
71
72
+ - name : configure git
73
+ uses : cylc/release-actions/configure-git@v1
74
+
72
75
- name : checkout cylc-doc
73
76
uses : actions/checkout@v3
74
77
with :
75
- ref : ${{ github.event. inputs.cylc-flow-tag }}
78
+ ref : ${{ inputs.cylc-flow-tag }}
76
79
path : docs
77
80
78
81
- name : install dependencies
79
82
uses : cylc/cylc-doc/.github/actions/install-dependencies@master
80
83
81
84
- name : install cylc-doc
82
- run : pip install "${{ github.workspace }}/docs[all]"
85
+ working-directory : docs
86
+ run : pip install ".[all]"
83
87
84
88
- name : install libs to document
85
89
uses : cylc/cylc-doc/.github/actions/install-libs@master
@@ -98,21 +102,18 @@ jobs:
98
102
path : gh-pages
99
103
100
104
- name : sync static files
101
- if : ${{ github.event.inputs.set_stable == 'true' }}
105
+ if : ${{ inputs.set_stable }}
106
+ env :
107
+ DOCS : ' ${{ github.workspace }}/docs'
108
+ PAGE : ' ${{ github.workspace }}/gh-pages'
102
109
run : |
103
- DOCS="${{ github.workspace }}/docs" \
104
- PAGE="${{ github.workspace }}/gh-pages" \
105
-
106
110
rsync -r "$DOCS/doc/" "$PAGE/"
107
111
108
112
- name : install gh-pages
113
+ working-directory : docs
109
114
run : |
110
- DOCS="${{ github.workspace }}/docs" \
111
- PAGE="${{ github.workspace }}/gh-pages" \
112
-
113
- cd "$DOCS"
114
115
rm -r doc
115
- ln -s "$PAGE" doc
116
+ ln -s ../gh-pages doc
116
117
117
118
- name : build docs
118
119
run : |
@@ -125,20 +126,17 @@ jobs:
125
126
linkcheck \
126
127
SPHINXOPTS='-Wn --keep-going' \
127
128
FORCE_COLOR=true \
128
- STABLE=${{ github.event.inputs.set_stable }} \
129
- LATEST=${{ github.event.inputs.set_latest }}
130
-
131
- - name : configure git
132
- uses : cylc/release-actions/configure-git@v1
129
+ STABLE=${{ inputs.set_stable }} \
130
+ LATEST=${{ inputs.set_latest }}
133
131
134
132
- name : tidy old versions
133
+ working-directory : docs
135
134
run : |
136
- cd docs
137
- git rm -r $("${{ github.workspace }}/docs/bin/version" tidy) || true
135
+ git rm -r $("./bin/version" tidy) || true
138
136
139
137
- name : push changes
138
+ working-directory : gh-pages
140
139
run : |
141
- cd gh-pages
142
140
git add *
143
- git commit -m "add: ${{ github.event. inputs.cylc-flow-tag }}"
141
+ git commit -m "add: ${{ inputs.cylc-flow-tag }}"
144
142
git push origin HEAD
0 commit comments