Skip to content

Commit

Permalink
chore: fix publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Étienne Corbillé committed Jul 10, 2024
1 parent a6da243 commit 7f5432b
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ on:

jobs:
deploy:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: release
url: https://pypi.org/project/remoulade/
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/[email protected]
- name: Set up Python
Expand All @@ -17,11 +23,10 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
python -m pip install build twine
- name: Build package
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
python -m build
python -m twine check --strict dist/*
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 7f5432b

Please sign in to comment.