Skip to content

Commit

Permalink
Merge pull request #6 from j9ac9k/fix-release-pipeline
Browse files Browse the repository at this point in the history
Fix release pipeline
  • Loading branch information
j9ac9k authored Mar 21, 2023
2 parents 9c68c3f + 366d74e commit 5c8d3f8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: Upload Python Package

on:
release:
types: [created]
types: [published]

jobs:
deploy:
Expand All @@ -21,14 +21,14 @@ jobs:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel twine setuptools
python -m pip install build
pip install build twine setuptools
- name: Build and publish
env:
TWINE_USERNAME: __token__
# The PYPI_PASSWORD must be a pypi token with the "pypi-" prefix with sufficient permissions to upload this package
# https://pypi.org/help/#apitoken
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
python3 -m build
twine upload dist/*

0 comments on commit 5c8d3f8

Please sign in to comment.