Skip to content

Commit

Permalink
Update pypi workflow using OIDC
Browse files Browse the repository at this point in the history
  • Loading branch information
scrazzz committed Jan 18, 2024
1 parent 573b9ba commit 15473d6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
jobs:
pypi:
runs-on: ubuntu-latest
environment: pypi
permissions:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -17,14 +20,11 @@ jobs:
with:
python-version: '3.10'

- name: Install deps
run: python -m pip install -U build twine
- name: Install `build` dependency
run: python -m pip install -U build

- name: Build `dist/`
- name: Build dist/
run: python -m build

- name: Upload to PyPi
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: python -m twine upload dist/*
- name: Publish package to PyPi
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 15473d6

Please sign in to comment.