Github specific CI changes
This commit is contained in:
parent
12a4b49b9d
commit
3b61336e30
2
.github/workflows/build-and-deploy.yml
vendored
2
.github/workflows/build-and-deploy.yml
vendored
@ -24,5 +24,3 @@ jobs:
|
||||
with:
|
||||
branch: gh-pages
|
||||
folder: public
|
||||
force: false
|
||||
clean: false
|
||||
|
@ -3,10 +3,10 @@
|
||||
DEFAULT=$(git remote show origin | sed -n '/HEAD branch/s/.*: //p')
|
||||
|
||||
mkdir base
|
||||
cat > base/_redirects << EOF
|
||||
/ /$DEFAULT/ 301
|
||||
/index.html /$DEFAULT/index.html 301
|
||||
cat > base/index.html << EOF
|
||||
<meta http-equiv="refresh" content="0; url=./$DEFAULT/">
|
||||
EOF
|
||||
touch base/.nojekyll
|
||||
|
||||
# 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
|
||||
|
Loading…
Reference in New Issue
Block a user