Skip to content

Commit

Permalink
Fix release gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
tefra committed Nov 3, 2024
1 parent 1fec398 commit 7ff88a8
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI

on:
workflow_dispatch:
release:
types: [released]

Expand All @@ -26,16 +27,20 @@ jobs:
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
run: python3 -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Download all the dists
uses: actions/download-artifact@v4
with:
repository-url: https://test.pypi.org/legacy/
name: python-package-distributions
path: dist
# - name: Publish distribution 📦 to Test PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# repository-url: https://test.pypi.org/legacy/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 7ff88a8

Please sign in to comment.