From 94b89533cfda08d8a740b802400add920c61f7ce Mon Sep 17 00:00:00 2001 From: DanPuzzuoli Date: Fri, 13 Oct 2023 08:59:55 -0700 Subject: [PATCH 1/2] updating github release workflow for new pypi authentication scheme --- .github/workflows/release.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7f5a30c..a238e5b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,6 +7,9 @@ jobs: wheel-build: name: Build and Publish Release Artifacts runs-on: ubuntu-latest + environment: release + permissions: + id-token: write steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 @@ -14,7 +17,7 @@ jobs: 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 @@ -22,9 +25,6 @@ jobs: shell: bash - uses: actions/upload-artifact@v3 with: - path: ./dist/arraylias* + path: ./dist/qiskit* - name: Publish to PyPi - env: - TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} - TWINE_USERNAME: qiskit - run: twine upload dist/arraylias* \ No newline at end of file + uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file From 277fc359928f02f2c9fed01a4edddc3818a02a03 Mon Sep 17 00:00:00 2001 From: Daniel Puzzuoli Date: Fri, 27 Oct 2023 11:50:06 -0700 Subject: [PATCH 2/2] Update .github/workflows/release.yml Co-authored-by: Matthew Treinish --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a238e5b..2891ca4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,6 +25,6 @@ jobs: shell: bash - uses: actions/upload-artifact@v3 with: - path: ./dist/qiskit* + path: ./dist/arraylias* - name: Publish to PyPi uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file