Skip to content

Commit

Permalink
Add git tag verification and separate build and
Browse files Browse the repository at this point in the history
publish steps
  • Loading branch information
emmanuelmathot committed Nov 22, 2023
1 parent a000313 commit 40253be
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,20 @@ jobs:
. venv/bin/activate
pip install setuptools wheel twine
pip install -r requirements.txt
- name: Build and publish
- name: verify git tag vs. version
run: |
python3 -m venv venv
. venv/bin/activate
python setup.py verify
- name: Build
run: |
. venv/bin/activate
python setup.py bdist_wheel --universal
- name: Publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USER }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py bdist_wheel --universal
twine upload dist/*
version:
Expand Down

0 comments on commit 40253be

Please sign in to comment.