Skip to content

Commit

Permalink
add pypi pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc committed Mar 17, 2024
1 parent 30cdb81 commit a94f567
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Upload package to PyPi

on:
push:
release:
types: [published]

jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- uses: ./.github/actions/prepare
with:
python-version: ${{ inputs.python-version }}
poetry-version: ${{ inputs.poetry-version }}

- name: Build and publish
env:
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: |
poetry run python setup.py sdist bdist_wheel
pip install --upgrade dist/*
# twine upload dist/* --verbose --non-interactive --repository pypi -u __token__ -p $PYPI_API_TOKEN

0 comments on commit a94f567

Please sign in to comment.