Skip to content

6.0.0b6

6.0.0b6 #24

Workflow file for this run

# This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
name: Upload Python Package
"on":
release:
types:
- published
jobs:
build:
name: Build distribution 📦
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.x"
- name: Install pypa/build
run: >-
python3 -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v7
with:
name: python-package-distributions
path: dist/
deploy:
permissions:
id-token: write
runs-on: ubuntu-latest
needs:
- build
name: >-
Publish Python 🐍 distribution 📦 to PyPI
environment:
name: release
url: https://pypi.org/p/pyisyox
steps:
- name: Download all the dists
uses: actions/download-artifact@v8
with:
name: python-package-distributions
path: dist/
- name: Publish package distributions to PyPI
# With `permissions.id-token: write` and a configured trusted publisher
# on PyPI, the action will use OIDC token-based authentication and
# no repository secret is required.
uses: pypa/gh-action-pypi-publish@release/v1