Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

Commit

Permalink
☁️ Build to cloudflare.
Browse files Browse the repository at this point in the history
This should be the final commit.
  • Loading branch information
rentruewang committed Jan 23, 2024
1 parent 2fe06d8 commit 0edc00f
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build.yaml
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
19 changes: 19 additions & 0 deletions docs/index.html
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>

0 comments on commit 0edc00f

Please sign in to comment.