diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 94c7fe2..f40e79f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -31,8 +31,11 @@ jobs: with: python-version: 3.x - - name: Install dependencies + - name: Install Poetry run: pip install poetry + - name: Install Dev dependencies + run: poetry install + - name: Publish on PyPI run: scripts/publish "${{ secrets.PYPI_TOKEN }}" diff --git a/scripts/publish b/scripts/publish index c6ccabc..080918d 100755 --- a/scripts/publish +++ b/scripts/publish @@ -1,4 +1,7 @@ #!/usr/bin/env bash set -eu -sphinx-build -EW docs docs/_build/html "$@" +# This script is not meant to run inside poetry + +poetry version $(poetry run dunamai from git --pattern '(?P\d+\.\d+\.\d+)') +poetry publish --username "__token__" --password "$1"