Skip to content

Commit

Permalink
Update python-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelduranfrigola committed Jun 14, 2023
1 parent 458515c commit dd1950b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
name: Upload Python Package

on:
push:
tags:
- '*'

workflow_dispatch:

workflow_run:
workflows: ["Tag to version"]
types:
- completed

jobs:
deploy:

Expand All @@ -35,5 +34,7 @@ jobs:
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}

run: |
wget https://raw.githubusercontent.com/ersilia-os/ersilia/master/ersilia/_static_version.py
mv _static_version.py ersilia/.
python setup.py sdist bdist_wheel
twine upload --verbose --skip-existing dist/* -u $TWINE_USERNAME -p $TWINE_PASSWORD

0 comments on commit dd1950b

Please sign in to comment.