Skip to content

Commit

Permalink
Add PyPI release workflow (#11)
Browse files Browse the repository at this point in the history
* Add PyPI release workflow

* Test

* Clean
  • Loading branch information
regisss authored Apr 5, 2024
1 parent 17238bf commit ab6b6a5
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/pypi-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: PyPI Release
on:
workflow_dispatch:
push:
tags:
- v*

env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN_DIST }}

jobs:
upload_package:
name: Upload package to PyPI
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Install dependencies
run: pip install -U build twine

- name: Clean
run: |
rm -rf build/
rm -rf dist/
- name: Build the wheels
run: python -m build .

- name: Upload to PyPI
run: |
pip install twine
twine upload dist/* -u __token__ -p "$PYPI_TOKEN"

0 comments on commit ab6b6a5

Please sign in to comment.