Skip to content

Bump the ci-dependencies group across 1 directory with 4 updates #79

Bump the ci-dependencies group across 1 directory with 4 updates

Bump the ci-dependencies group across 1 directory with 4 updates #79

name: "Publish Python 🐍 distributions πŸ“¦ to PyPI"
on:
push:
branches:
- main
pull_request:
release:
types: [published]
jobs:
build:
name: "Build publish Python 🐍 distributions"
runs-on: ubuntu-latest
steps:
- name: "Checkout repository"
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: "Set up Python 3.x"
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: "3.x"
cache: "pip"
cache-dependency-path: "pyproject.toml"
- name: "Install pypa/build"
run: >-
python -m
pip install
build
--user
- name: "Build a binary wheel and a source tarball"
run: >-
python -m
build
--outdir dist/
- name: "Upload packages"
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: packages
path: dist
publish:
name: "Publish πŸ“¦ to PyPI"
if: github.event_name == 'release' && github.event.action == 'published'
runs-on: ubuntu-latest
environment: pypi
permissions:
id-token: write
steps:
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: packages
- name: "Publish distribution πŸ“¦ to PyPI"
uses: pypa/gh-action-pypi-publish@897895f1e160c830e369f9779632ebc134688e1b # v1.10.2
with:
skip-existing: true
verbose: true
print-hash: true