Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ jobs:
git config --local user.name "GitHub Action"
git checkout --orphan gh-pages
git reset --hard
echo '<html><head><meta http-equiv="refresh" content="0; url=latest/" /></head></html>' > index.html
git add index.html
touch .nojekyll
git add .nojekyll
git commit -m "Initializing gh-pages branch"
Expand All @@ -62,7 +64,7 @@ jobs:
mkdir -p /tmp/docs_build
cp -r docs/build/html/* /tmp/docs_build/
rm -rf ${{ env.RELEASE_VERSION }}/*
echo '<html><head><meta http-equiv="refresh" content="0; url=stable/" /></head></html>' > index.html
echo '<html><head><meta http-equiv="refresh" content="0; url=latest/" /></head></html>' > index.html
mkdir -p ${{ env.RELEASE_VERSION }}
cp -r /tmp/docs_build/* ./${{ env.RELEASE_VERSION }}
rm -rf /tmp/docs_build
Expand All @@ -72,6 +74,7 @@ jobs:
ln -sfn ${{ env.RELEASE_VERSION }} latest
fi
git add ./latest ${{ env.RELEASE_VERSION }}
git add index.html
git commit -m "Update documentation" -a || true
- name: Push changes
uses: ad-m/github-push-action@master
Expand Down