-
Notifications
You must be signed in to change notification settings - Fork 2
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
2 changed files
with
50 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,41 @@ | ||
name: Deploy Jupyter Book to GitHub Pages | ||
|
||
on: | ||
push: | ||
branches:["main"] | ||
pull_request: | ||
branches: ["main"] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout the repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.9' | ||
|
||
- name: Install flit and dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install flit | ||
flit install # Install the package itself, if needed | ||
- name: Install Jupyter Book and ghp-import | ||
run: | | ||
pip install jupyter-book ghp-import # Install the Jupyter Book and deployment tool | ||
- name: Build the Jupyter Book | ||
run: jupyter-book build mybook/ | ||
|
||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
publish_dir: ./mybook/_build/html # Path to the build directory | ||
publish_branch: gh-pages # The branch where the book will be deployed | ||
user_name: 'Matt Haberland' | ||
user_email: '[email protected]' |
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 |
---|---|---|
|
@@ -2,6 +2,15 @@ | |
requires = ["flit_core >=3.2,<4"] | ||
build-backend = "flit_core.buildapi" | ||
|
||
[tool.flit.metadata] | ||
module = "MArray" | ||
author = "Matt Haberland" | ||
author-email = "[email protected]" | ||
|
||
[tool.flit.dependencies] | ||
jupyter-book = "^0.12" # Required for building the Jupyter Book | ||
ghp-import = "^2.0" # Required for deployment | ||
|
||
[project] | ||
name = "marray" | ||
authors = [{ name = "Matt Haberland", email = "[email protected]" }] | ||
|