File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ set -o errexit
3
3
set -o pipefail
4
4
set -o nounset
5
5
6
+
6
7
readonly ssh_dir=" /root/.ssh"
7
8
mkdir -p " ${ssh_dir} "
8
9
Original file line number Diff line number Diff line change @@ -97,11 +97,17 @@ jobs:
97
97
runs-on : ubuntu-20.04
98
98
steps :
99
99
- uses : actions/checkout@v2
100
+ with : {fetch-depth: 0}
100
101
- uses : mamba-org/provision-with-micromamba@v10
101
102
with : { environment-file: dev/conda.yaml }
102
103
- name : " Build documentation."
103
104
shell : bash -l {0}
104
105
run : bash dev/run.sh --fix-pythonpath --build-doc-dir=local/docs/latest configure -- build-doc
106
+ - name : " Symlink stable documentation."
107
+ run : |
108
+ version="$(bash dev/run.sh git-version origin/master | grep -E -o '[0-9]+\.[0-9]+')" &&
109
+ cd local/docs/ &&
110
+ ln -sf "${version:?}" "stable"
105
111
- uses : ./.github/actions/push-to-repo
106
112
with :
107
113
git_email : " BotEcole@users.noreply.github.com"
@@ -137,13 +143,6 @@ jobs:
137
143
run : |
138
144
version="$(echo "${GITHUB_REF#refs/tags/v}" | grep -E -o '[0-9]+\.[0-9]+')" &&
139
145
bash dev/run.sh --fix-pythonpath --build-doc-dir="local/docs/${version}" configure -- build-doc
140
- - name : " Symlink stable dnocumentation."
141
- run : > # Only symlink on non pre/dev/post releases
142
- if echo "${GITHUB_REF#refs/tags/}" | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$'; then
143
- version="$(echo "${GITHUB_REF#refs/tags/}" | grep -E -o '[0-9]+\.[0-9]+')"
144
- cd local/docs/
145
- ln -s "${version}" "stable"
146
- fi
147
146
- uses : ./.github/actions/push-to-repo
148
147
with :
149
148
git_email : " BotEcole@users.noreply.github.com"
You can’t perform that action at this time.
0 commit comments