From 4b67efbfe2974e9f19adfc9f9097d41aea7e93e4 Mon Sep 17 00:00:00 2001 From: Daniel Puzzuoli Date: Fri, 27 Oct 2023 11:45:24 -0700 Subject: [PATCH] Update release workflow for new pypi authentication scheme (#268) Closes #267 Follows Qiskit-Extensions/qiskit-experiments#1284 --- .github/workflows/release.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b71c71ecb..a238e5b89 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,24 +7,24 @@ jobs: wheel-build: name: Build and Publish Release Artifacts runs-on: ubuntu-latest + environment: release + permissions: + id-token: write steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 name: Install Python with: python-version: '3.8' - name: Install Deps - run: pip install -U twine wheel + run: pip install -U wheel - name: Build Artifacts run: | python setup.py sdist python setup.py bdist_wheel shell: bash - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: path: ./dist/qiskit* - name: Publish to PyPi - env: - TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} - TWINE_USERNAME: qiskit - run: twine upload dist/qiskit* + uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file