Skip to content

Commit

Permalink
Revert "ci: fix package build, using trusted publisher"
Browse files Browse the repository at this point in the history
This reverts commit f619ebd.
  • Loading branch information
alvarolopez committed Aug 8, 2024
1 parent f619ebd commit 04f958d
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,8 @@ jobs:
run: tox

publish:
name: upload release to PyPI
runs-on: ubuntu-latest
needs: test
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/checkout@v3

Expand All @@ -52,9 +47,11 @@ jobs:
python -m pip install --upgrade pip
python -m pip install poetry poetry poetry-plugin-export
- name: Build
run: poetry build

- name: publish
uses: pypa/gh-action-pypi-publish@release/v1
- name: Build and publish
env:
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
poetry build
poetry publish

0 comments on commit 04f958d

Please sign in to comment.