From 078055f34eabc201045f073bc1ab55eb5e6f0d7d Mon Sep 17 00:00:00 2001 From: Jakob Schlyter Date: Tue, 17 Dec 2024 07:32:06 +0100 Subject: [PATCH] update release script --- .github/workflows/release.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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