Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Christophe Morin <jean_christophe_morin@hotmail.com>
  • Loading branch information
JeanChristopheMorinPerso committed Nov 18, 2023
1 parent 6ddcb97 commit e9adf0c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,33 @@ 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

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3
python-version: 3.11

- 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 e9adf0c

Please sign in to comment.