Skip to content

Commit

Permalink
pypi publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
fschncvg committed Oct 24, 2024
1 parent cb002de commit abc057c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/package-and-publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Publish to PyPI πŸš€
name: Publish Python 🐍 distribution πŸ“¦ to PyPI and TestPyPI

on: push

jobs:
Expand All @@ -11,8 +12,8 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install pypa/build
python-version: "3.x"
- name: Install pypa/build
run: >-
python3 -m
pip install
Expand All @@ -25,6 +26,7 @@ jobs:
with:
name: python-package-distributions
path: dist/

publish-to-pypi:
name: >-
Publish Python 🐍 distribution πŸ“¦ to PyPI
Expand All @@ -37,13 +39,16 @@ jobs:
url: https://pypi.org/p/<package-name> # Replace <package-name> with your PyPI project name
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing

steps:
- name: Download all the dists
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Publish distribution πŸ“¦ to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

github-release:
name: >-
Sign the Python 🐍 distribution πŸ“¦ with Sigstore
Expand Down

0 comments on commit abc057c

Please sign in to comment.