Skip to content

Commit

Permalink
feat: add pypi upload action
Browse files Browse the repository at this point in the history
  • Loading branch information
Sacrimento committed Jan 30, 2023
1 parent 9134c64 commit a6c2417
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/pypi_upload.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: pypi_upload

on:
release:
types: [created]

jobs:
upload:
name: PyPI Upload
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.x

- name: Install latest pip, setuptools, build, twine
run: |
python -m pip install --upgrade pip setuptools build twine
- name: Build sdist + wheel
run: |
python -m build
- name: Upload to PyPI via Twine
env:
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
twine upload --verbose -u '__token__' dist/*

0 comments on commit a6c2417

Please sign in to comment.