diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 654fab7..eecf5f7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,12 +8,17 @@ jobs: pypi_release: name: Build with Poetry and Publish to PyPI runs-on: ubuntu-latest + environment: + name: pypi + url: https://pypi.org/p/chargeamps + permissions: + id-token: write steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 - name: Install and configure Poetry - run: | - pip install poetry - poetry config pypi-token.pypi "${{ secrets.PYPI_TOKEN }}" + run: pip install poetry - name: Publish package - run: poetry publish --build + run: poetry build + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1