Skip to content

Commit

Permalink
Migrate deployment to GitHub Actions (#74)
Browse files Browse the repository at this point in the history
* Migrate deployment to GitHub Actions

* Fix typos
  • Loading branch information
g4brielvs committed Jun 6, 2024
1 parent 1747ced commit 4054c3c
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 13 deletions.
32 changes: 22 additions & 10 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,37 @@ on:
- main

jobs:
build:
build-book:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: 3.11
cache: "pip"
- name: Dependencies
- name: Install Dependencies
run: |
if [ -f pyproject.toml ]; then pip install ".[docs]"; fi
- name: Build Sphinx Documentation
run: |
sphinx-build docs _build/html -b html
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
if: job.status == 'success'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_build/html
enable_jekyll: false
path: "_build/html"

deploy-book:
needs: build-book
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
2 changes: 1 addition & 1 deletion docs/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
identity and expression, level of experience, education, socioeconomic status,
nationality, personal appearance, race, religion, or sexual identity
and orientation.

Expand Down
4 changes: 2 additions & 2 deletions notebooks/blackmarblepy.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6752,7 +6752,7 @@
"id": "12b30a59-ab2a-4a44-bffd-b603a0154637",
"metadata": {},
"source": [
"Lastly, we calculate the increase/decrease in nigthtime lights radiance levels."
"Lastly, we calculate the increase/decrease in nighttime lights radiance levels."
]
},
{
Expand Down Expand Up @@ -6914,7 +6914,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.6"
"version": "3.11.8"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 4054c3c

Please sign in to comment.