Merge pull request #80 from Geodefi/dev #1
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: Build and publish python 🐍 package 📦 to PyPI | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-publish-to-pypi: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Setup Python 3.10 | |
uses: actions/[email protected] | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry | |
- name: Configure Poetry | |
run: | | |
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }} | |
# poetry config pypi-token.test-pypi ${{ secrets.TEST_PYPI_TOKEN }} | |
# poetry config repositories.test-pypi https://test.pypi.org/legacy/ | |
- name: Publish to PyPI | |
run: | | |
poetry publish --build | |
# poetry publish --build -r test-pypi |