Skip to content

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

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

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

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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: "Set up Python 3.x"
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.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@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
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@fb13cb306901256ace3dab689990e13a5550ffaa # v1.11.0
with:
skip-existing: true
verbose: true
print-hash: true