-
Notifications
You must be signed in to change notification settings - Fork 0
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
4 changed files
with
39 additions
and
1 deletion.
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 |
---|---|---|
@@ -1,4 +1,7 @@ | ||
name: Deploy | ||
env: | ||
SOURCE_BRANCH: main | ||
PAGES_BRANCH: gh-pages | ||
on: | ||
push: | ||
branches: | ||
|
@@ -25,4 +28,27 @@ jobs: | |
restore-keys: | | ||
mkdocs-material- | ||
- run: pip install mkdocs-material | ||
- run: mkdocs gh-deploy --force | ||
- run: mkdocs build | ||
# Release the site to the gh-pages branch in a subdir "docs" | ||
# so that our site can be hosted at felis.alice-bob.com/docs | ||
- run: ghp-import site --force -p -x docs | ||
|
||
- name: Switch to $PAGES_BRANCH branch | ||
run: git checkout $PAGES_BRANCH | ||
|
||
- name: Copy CNAME & index.html from $SOURCE_BRANCH branch | ||
run: git checkout $SOURCE_BRANCH CNAME index.html | ||
|
||
- name: Add files to commit | ||
run: git add CNAME index.html | ||
|
||
- name: Commit CNAME & index.html | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Actions" | ||
git commit -m "Add CNAME & index.html" | ||
- name: Push changes | ||
run: git push origin $PAGES_BRANCH | ||
|
||
|
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 @@ | ||
felis.alice-bob.com |
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,10 @@ | ||
<html> | ||
<!-- | ||
Redirect the users of "felis.alice-bob.com" to Alice & Bob's website | ||
Felis page. | ||
This page is copied at the root when deploying to GitHub pages. | ||
--> | ||
<head> | ||
<meta http-equiv="refresh" content="0; url='https://alice-bob.com/products/quantum-cloud-felis/'" /> | ||
</head> | ||
</html> |
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