Update publish.yaml [skip ci]
This commit is contained in:
parent
e3661c11e3
commit
55e9bee373
8
.github/workflows/publish.yaml
vendored
8
.github/workflows/publish.yaml
vendored
@ -22,9 +22,7 @@ jobs:
|
||||
poetry config virtualenvs.in-project true --local
|
||||
- name: Build and publish
|
||||
env:
|
||||
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
|
||||
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
|
||||
run: |
|
||||
if [ -z "${PYPI_TOKEN}" ]; then echo "Set the PYPI_TOKEN variable in your repository secrets"; exit 1; fi
|
||||
poetry config pypi-token.pypi $PYPI_TOKEN
|
||||
poetry config repositories.pypi https://pypi.org/legacy/
|
||||
poetry publish --build --repository pypi
|
||||
if [ -z "${POETRY_PYPI_TOKEN_PYPI}" ]; then echo "Set the PYPI_TOKEN variable in your repository secrets"; exit 1; fi
|
||||
run: poetry publish
|
||||
|
Loading…
x
Reference in New Issue
Block a user