Skip to content

Commit

Permalink
Update publishing workflow (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
johannfaouzi authored Jun 18, 2023
1 parent 2bc41e6 commit 3d649d6
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/publish_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,15 @@ jobs:
deploy:

runs-on: ubuntu-latest
permissions:
id-token: write

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
- uses: actions/setup-python@v4

- name: Build the package
run: python3 -m pip install --upgrade build && python3 -m build

- name: Publish the package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 3d649d6

Please # to comment.