diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index a17c9d0..783307b 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -17,14 +17,6 @@ jobs: runs-on: ubuntu-latest - environment: - name: frads - url: https://pypi.org/p/frads - permissions: - id-token: write # IMPORTANT: this permission is mandatory for trusted publishing - strategy: - fail-fast: false - steps: - uses: actions/checkout@v2 - name: Set up Python @@ -37,10 +29,8 @@ jobs: pip install build - name: Build package run: python -m build - # - name: Publish package - # uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 - # with: - # user: __token__ - # password: ${{ secrets.PYPI_API_TOKEN }} - - name: Publish package distributions to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 + - name: Publish package + uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }}