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:
|
with:
|
||||||
branch: gh-pages
|
branch: gh-pages
|
||||||
folder: public
|
folder: public
|
||||||
force: false
|
|
||||||
clean: false
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user