-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Étienne Corbillé
committed
Jul 10, 2024
1 parent
a6da243
commit 7f5432b
Showing
1 changed file
with
12 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 |