Skip to content

Commit

Permalink
add auto-publish workflow when releases published
Browse files Browse the repository at this point in the history
  • Loading branch information
joezuntz committed Feb 24, 2022
1 parent dd9eb71 commit 1bdb2ec
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Upload to PyPI

on:
release:
types: [published]

jobs:
Upload:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup python
uses: actions/setup-python@v2

- name: Build wheel and source tarball
run: |
python setup.py sdist
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: joezuntz
password: ${{ secrets.PYPI_CECI_UPLOAD }}

0 comments on commit 1bdb2ec

Please sign in to comment.