Skip to content

Commit

Permalink
feat: Release under alice & bob DNS
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxence Drutel authored and MaxleDrut committed Apr 23, 2024
1 parent f91271b commit c356681
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 1 deletion.
28 changes: 27 additions & 1 deletion .github/workflows/main.yml
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:
Expand All @@ -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


1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
felis.alice-bob.com
10 changes: 10 additions & 0 deletions index.html
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>
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
site_name: Felis Documentation
site_url: "https://felis.alice-bob.com/docs"
theme:
name: material
custom_dir: docs/overrides
Expand Down

0 comments on commit c356681

Please sign in to comment.