Skip to content

Commit

Permalink
chore: publish on pypi with hatch (#410)
Browse files Browse the repository at this point in the history
Signed-off-by: ThibaultFy <[email protected]>
  • Loading branch information
ThibaultFy authored Mar 27, 2024
1 parent bc67c43 commit 9b6a141
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,16 @@ on:

jobs:
publish:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install tools
run: pip install wheel
- name: Build
run:
python -m build
- name: Install Hatch
run: pipx install hatch
- name: Build dist
run: hatch build
- name: Publish
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
repository_url: https://upload.pypi.org/legacy/
run: hatch publish -u __token__ -a ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 9b6a141

Please sign in to comment.