Skip to content

v0.4.0

v0.4.0 #6

Workflow file for this run

name: Publish
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- uses: abatilo/actions-poetry@v2
with:
poetry-version: 1.5.1
- name: Upload to pypi
run: |
poetry build
poetry config repositories.testpypi https://test.pypi.org/legacy/
poetry config pypi-token.testpypi "$TEST_PYPI_TOKEN"
poetry config pypi-token.pypi "$PYPI_TOKEN"
poetry publish --dry-run
poetry publish --repository testpypi
poetry publish
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
TEST_PYPI_TOKEN: ${{ secrets.TEST_PYPI_TOKEN }}