Skip to content

2024.07.04 (#295) #5

2024.07.04 (#295)

2024.07.04 (#295) #5

Workflow file for this run

on:
workflow_dispatch:
push:
tags:
- "*.*.*"
name: release
permissions:
contents: read
jobs:
build:
name: Build distributions for PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up Python
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
- name: Install build dependencies
run: python -m pip install build
- name: Build distributions
run: python -m build
- name: Upload distributions
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: certifi-dists
path: dist/
pypi:
name: Publish to PyPI
runs-on: ubuntu-latest
environment: release
needs:
- build
permissions:
# Used to authenticate to PyPI via OIDC.
id-token: write
steps:
- name: fetch dists
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
with:
name: certifi-dists
path: dist/
- name: publish
if: github.event_name == 'push'
uses: pypa/gh-action-pypi-publish@ec4db0b4ddc65acdf4bff5fa45ac92d78b56bdf0 # v1.9.0