Skip to content

Commit

Permalink
Add pipy publishing workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
MicheleBortol committed Jul 25, 2024
1 parent 6832b5d commit 25d6ee1
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/publish_pipy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: PyPI
on:
push:
tags:
- '*'

jobs:
build-n-publish:
name: Build and publish Python distribution to PyPI
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Build a binary wheel and a source tarball
run: |
python -mpip install build
python -m build
- name: Publish distribution to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/[email protected]
with:
password: {{ '${{ secrets.PYPI_PASSWORD }}' }}

0 comments on commit 25d6ee1

Please sign in to comment.