Skip to content

Commit

Permalink
Merge pull request #5 from valkey-io/mkmkme/fix-token-2
Browse files Browse the repository at this point in the history
configure PyPI publishing using trusted publishing (OIDC)
  • Loading branch information
mkmkme authored Jul 19, 2024
2 parents 1e3be1f + fb4a3f9 commit 8220314
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/REUSABLE-wheeler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ jobs:

- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
with:
platforms: all

- name: Build wheels
uses: pypa/cibuildwheel@v2.16.2
uses: pypa/cibuildwheel@v2.19.2
env:
# configure cibuildwheel to build native archs ('auto'), and some
# emulated ones
Expand Down Expand Up @@ -69,11 +69,13 @@ jobs:
publish:
name: Pypi publish
if: ${{inputs.release == true}}
# needs: ['build_wheels', 'build_sdist']
needs: ['build_wheels', 'build_sdist']
runs-on: ubuntu-latest
environment: pypi
permissions:
id-token: write
steps:
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install tools
Expand Down Expand Up @@ -104,6 +106,3 @@ jobs:
cp -R artifacts/sdist/* dist
- name: Publish to Pypi
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 8220314

Please sign in to comment.