Merge pull request #34 from mitrefireline/add-geopy-and-fix-tests #63
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
name: GitHub Pages | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
deploy-pages: | |
runs-on: ubuntu-latest | |
container: | |
image: python:3.9 | |
volumes: | |
- public:/public | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v1 | |
- name: Install Prerequisites 🖥️ | |
run: | | |
apt update | |
apt install rsync -y | |
- name: Build 🛠️ | |
run: | | |
python --version | |
curl -sSkL https://install.python-poetry.org | python - | |
export PATH=$PATH:$HOME/.local/bin | |
poetry --version | |
poetry install --only docs | |
poetry run sphinx-build -d docs/build/doctrees docs/source docs/build/html | |
mv docs/build/html public/ | |
touch public/.nojekyll | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: public |