This repository has been archived by the owner on Aug 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
58 additions
and
0 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,39 @@ | ||
name: Website Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build-and-deploy: | ||
name: 🌎 Build the pages | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 🔔 Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: 🏗️ python 3.10 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: ⬇️ Python Poetry | ||
uses: abatilo/actions-poetry@v2 | ||
with: | ||
poetry-version: 1.5 | ||
|
||
- name: ⬇️ Python Dependencies | ||
run: poetry install | ||
|
||
- name: 🇺🇸 Build English version of the book | ||
run: poetry run jupyter-book build book | ||
|
||
- name: 🇺🇸 Deploy English book | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: pages | ||
folder: ./book/_build/html | ||
git-config-name: "github-actions[bot]" | ||
git-config-email: "github-actions[bot]@users.noreply.github.com" | ||
commit-message: 🎉 Book deployed |
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,19 @@ | ||
<!DOCTYPE HTML> | ||
<html lang="en-US"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="refresh" content="0; url=https://learning-machine.pages.dev"> | ||
<script type="text/javascript"> | ||
window.location.href = "https://learning-machine.pages.dev" | ||
</script> | ||
<title>Page Redirection</title> | ||
</head> | ||
|
||
<body> | ||
<!-- Note: don't tell people to `click` the link, just tell them that it is a link. --> | ||
If you are not redirected automatically, follow this <a href='https://learning-machine.pages.dev'>link to | ||
example</a>. | ||
</body> | ||
|
||
</html> |