Skip to content

Commit

Permalink
Fix release doc deployment (#3693)
Browse files Browse the repository at this point in the history
Back port from release/2.1 branch.
Need to git-fetch source code to get the version number dynamically
  • Loading branch information
mthrok committed Nov 9, 2023
1 parent a59e9ab commit 65df10b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ jobs:
with:
ref: gh-pages
fetch-depth: 5
- uses: actions/checkout@v4
with:
path: _src
- uses: actions/download-artifact@v3
with:
name: docs
Expand All @@ -167,7 +170,7 @@ jobs:
git commit --allow-empty -m "placeholder"
fi
dirname="$(cat version.txt)"
dirname="$(cat _src/version.txt)"
rm -rf "${dirname}"
mv html "${dirname}"
git add --all "${dirname}" || true
Expand Down

0 comments on commit 65df10b

Please sign in to comment.