Merge pull request #34 from mitrefireline/add-geopy-and-fix-tests #27
Workflow file for this run
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: Publish PyPi Package | |
on: | |
push: | |
tags: | |
- '*' | |
workflow_dispatch: | |
jobs: | |
pypi: | |
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 | |
python --version | |
curl -sSkL https://install.python-poetry.org | python - | |
export PATH=$PATH:$HOME/.local/bin | |
poetry --version | |
- name: Build 🛠️ | |
run: | | |
export PATH=$PATH:$HOME/.local/bin | |
poetry build | |
- name: Deploy 🚀 | |
run: | | |
export PATH=$PATH:$HOME/.local/bin | |
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }} | |
poetry publish |