Skip to content

Commit 65df10b

Browse files
authored
Fix release doc deployment (#3693)
Back port from release/2.1 branch. Need to git-fetch source code to get the version number dynamically
1 parent a59e9ab commit 65df10b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/build_docs.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ jobs:
151151
with:
152152
ref: gh-pages
153153
fetch-depth: 5
154+
- uses: actions/checkout@v4
155+
with:
156+
path: _src
154157
- uses: actions/download-artifact@v3
155158
with:
156159
name: docs
@@ -167,7 +170,7 @@ jobs:
167170
git commit --allow-empty -m "placeholder"
168171
fi
169172
170-
dirname="$(cat version.txt)"
173+
dirname="$(cat _src/version.txt)"
171174
rm -rf "${dirname}"
172175
mv html "${dirname}"
173176
git add --all "${dirname}" || true

0 commit comments

Comments
 (0)