File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -194,6 +194,11 @@ jobs:
194194 needs : [lint, test, test-docker-image]
195195 runs-on : ubuntu-22.04
196196 if : github.event_name == 'push' && contains(github.ref, 'refs/tags/')
197+ environment :
198+ name : pypi
199+ url : https://pypi.org/project/annif/
200+ permissions :
201+ id-token : write
197202 steps :
198203 - name : Harden the runner (Audit all outbound calls)
199204 uses : step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
@@ -206,12 +211,11 @@ jobs:
206211 with :
207212 python-version : ' 3.11'
208213 poetry-version : ${{ env.POETRY_VERSION }}
209- - name : Build and publish distribution to PyPI
210- env :
211- POETRY_HTTP_BASIC_PYPI_USERNAME : __token__
212- POETRY_HTTP_BASIC_PYPI_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
214+ - name : Build distributions
213215 run : |
214- poetry publish --build
216+ poetry build
217+ - name : Publish package distributions to PyPI
218+ uses : pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
215219
216220 - name : Login to Quay.io
217221 uses : docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0
You can’t perform that action at this time.
0 commit comments