From d9e13d6b059f36a244a476922fa91092b6f7c249 Mon Sep 17 00:00:00 2001 From: hussein-awala Date: Sat, 27 Jan 2024 00:21:13 +0100 Subject: [PATCH] Switch to openconnect auth --- .github/workflows/python-release.yml | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-release.yml b/.github/workflows/python-release.yml index 3285cbc..db27f05 100644 --- a/.github/workflows/python-release.yml +++ b/.github/workflows/python-release.yml @@ -6,7 +6,7 @@ on: - '*' jobs: - build: + release-build: runs-on: ubuntu-latest steps: - name: Check out repository @@ -35,7 +35,25 @@ jobs: run: poetry install --no-interaction --no-root --all-extras - name: Install library run: poetry install --no-interaction --all-extras - - name: Publish to PyPI + - name: Build release distributions run: | - poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }} - poetry publish --build + poetry build + - name: Upload dists + uses: actions/upload-artifact@v4 + with: + name: release-dists + path: dist/ + pypi-publish: + runs-on: ubuntu-latest + needs: + - release-build + permissions: + id-token: write + steps: + - name: Retrieve release distributions + uses: actions/download-artifact@v4 + with: + name: release-dists + path: dist/ + - name: Publish release distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1