Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Christophe Morin <[email protected]>
  • Loading branch information
JeanChristopheMorinPerso committed Nov 18, 2023
1 parent 61080af commit 118187b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ on:

jobs:
publish:
name: Publish to PyPi
name: Publish to PyPI
runs-on: ubuntu-latest

permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write

steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -19,14 +23,15 @@ jobs:

- name: Install Dependencies
run: |
pip install wheel
pip install build
- name: Build rez
run: |
python setup.py sdist bdist_wheel
python -m build --sdist --wheel --outdir dist
- name: Upload to PyPi
# Note that we don't need credentials.
# We rely on https://docs.pypi.org/trusted-publishers/.
- name: Upload to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: '${{ secrets.PYPI_API_TOKEN }}'
packages-dir: dist
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

0 comments on commit 118187b

Please sign in to comment.