Skip to content

Bump actions/download-artifact from 4.1.8 to 4.1.9 in the ci-dependencies group #30

Bump actions/download-artifact from 4.1.8 to 4.1.9 in the ci-dependencies group

Bump actions/download-artifact from 4.1.8 to 4.1.9 in the ci-dependencies group #30

name: Publish Python 🐍 distributions 📦 to PyPI
on:
push:
branches:
- main
pull_request:
branches:
- main
release:
types:
- published
jobs:
build:
name: Build distribution 📦
runs-on: ubuntu-latest
permissions:
attestations: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Build and inspect Python 🐍 package 📦
uses: hynek/build-and-inspect-python-package@b5076c307dc91924a82ad150cdd1533b444d3310 # v2.12.0
with:
attest-build-provenance-github: ${{ github.event.action == 'published' }}
publish-to-pypi:
name: Publish Python 🐍 distribution 📦 to PyPI
needs: build
if: ${{ github.event.action == 'published' }}
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/project/imsosorry/${{ github.ref_name }}
permissions:
id-token: write
steps:
- name: Download dists
uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9
with:
name: Packages
path: dist/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
with:
print-hash: true