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 666dc36
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,29 @@ on:
- main

jobs:
build:
deploy-book:
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
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@v2
if: job.status == 'success'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_build/html
enable_jekyll: false
path: "_build/html"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
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 666dc36

Please sign in to comment.