Unverified Commit 65df10bb authored by moto's avatar moto Committed by GitHub
Browse files

Fix release doc deployment (#3693)

Back port from release/2.1 branch.
Need to git-fetch source code to get the version number dynamically
parent a59e9ab8
...@@ -151,6 +151,9 @@ jobs: ...@@ -151,6 +151,9 @@ jobs:
with: with:
ref: gh-pages ref: gh-pages
fetch-depth: 5 fetch-depth: 5
- uses: actions/checkout@v4
with:
path: _src
- uses: actions/download-artifact@v3 - uses: actions/download-artifact@v3
with: with:
name: docs name: docs
...@@ -167,7 +170,7 @@ jobs: ...@@ -167,7 +170,7 @@ jobs:
git commit --allow-empty -m "placeholder" git commit --allow-empty -m "placeholder"
fi fi
dirname="$(cat version.txt)" dirname="$(cat _src/version.txt)"
rm -rf "${dirname}" rm -rf "${dirname}"
mv html "${dirname}" mv html "${dirname}"
git add --all "${dirname}" || true git add --all "${dirname}" || true
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment