Skip to content

Commit

Permalink
Publish on push tags
Browse files Browse the repository at this point in the history
  • Loading branch information
douglascdev committed Oct 10, 2023
1 parent 0e84479 commit 01c0eec
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
on: push
jobs:
pypi-publish:
name: upload release to PyPI
Expand All @@ -8,6 +9,26 @@ jobs:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install pypa/build
run: >-
python3 -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python3 -m
build
--sdist
--wheel
--outdir dist/
.
# retrieve your distributions here
- name: Publish package distributions to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 01c0eec

Please sign in to comment.