Skip to content

build: v3.2.1

build: v3.2.1 #1

Workflow file for this run

# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
# For details: https://github.com/coveragepy/django_coverage_plugin/blob/main/NOTICE.txt
name: "Publish"
on:
push:
tags:
- '*'
permissions:
contents: read
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
build_package:
name: "Build"
runs-on: ubuntu-latest
steps:
- name: "Check out the repo"
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: "Set up Python"
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.14"
- name: "Install dependencies"
run: |
python -m pip install .[dev]
- name: "Build dists"
run: |
python -m build --sdist --wheel
python -m twine check dist/*
- name: "Upload dists"
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: dists
path: dist/*
retention-days: 7
publish_package:
name: "Publish"
needs: build_package
runs-on: ubuntu-latest
environment:
name: pypi
deployment: false
permissions:
id-token: write # needed for publishing to PyPI
steps:
- name: "Download artifacts"
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: dists
path: dist/
- name: "Publish to PyPI"
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0