Github specific CI changes

This commit is contained in:
Chris Hunt 2023-01-13 19:24:46 +00:00
parent 12a4b49b9d
commit 3b61336e30
2 changed files with 3 additions and 5 deletions

View File

@ -24,5 +24,3 @@ jobs:
with: with:
branch: gh-pages branch: gh-pages
folder: public folder: public
force: false
clean: false

View File

@ -3,10 +3,10 @@
DEFAULT=$(git remote show origin | sed -n '/HEAD branch/s/.*: //p') DEFAULT=$(git remote show origin | sed -n '/HEAD branch/s/.*: //p')
mkdir base mkdir base
cat > base/_redirects << EOF cat > base/index.html << EOF
/ /$DEFAULT/ 301 <meta http-equiv="refresh" content="0; url=./$DEFAULT/">
/index.html /$DEFAULT/index.html 301
EOF EOF
touch base/.nojekyll
# Generating documentation for each other branch in a subdirectory # Generating documentation for each other branch in a subdirectory
for BRANCH in $(git branch --remotes --format '%(refname:lstrip=3)' | grep -Ev '^(HEAD|develop|gh-pages)$'); do for BRANCH in $(git branch --remotes --format '%(refname:lstrip=3)' | grep -Ev '^(HEAD|develop|gh-pages)$'); do