-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
36 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
|
||
# preparing fake remote | ||
mkdir .build | ||
git config user.name ci-bot | ||
git config user.email [email protected] | ||
git remote add gh-pages ./.build | ||
cd ./.build | ||
git init | ||
git checkout -b gh-pages | ||
git config receive.denyCurrentBranch ignore | ||
cd - | ||
|
||
# build documentation for main branch | ||
poetry run mike deploy --push --remote gh-pages dev | ||
|
||
# build documentation for 8.x | ||
git checkout tags/8.2.2 | ||
poetry run mike deploy --push --remote gh-pages --update-aliases 8.2.2 latest | ||
poetry run mike set-default --push latest | ||
|
||
# build documentation for 9.x | ||
git checkout 9.0 # currently a branch, will be a tag later on | ||
poetry run mike deploy --push --remote gh-pages 9.0-BETA | ||
|
||
# clean fake remote | ||
cd ./.build | ||
git reset --hard gh-pages | ||
cd - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ vendor/ | |
.phpunit.result.cache | ||
tests/cache/ | ||
tools/phpstan/cache/ | ||
site/ | ||
site/ | ||
.build/ |