Skip to content

Merge pull request #509 from scikit-hep/pre-commit-ci-update-config #429

Merge pull request #509 from scikit-hep/pre-commit-ci-update-config

Merge pull request #509 from scikit-hep/pre-commit-ci-update-config #429

Workflow file for this run

name: CD
on:
workflow_dispatch:
pull_request:
push:
branches:
- master
release:
types:
- published
jobs:
dist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: hynek/build-and-inspect-python-package@v2
publish:
needs: [dist]
environment: release
permissions:
id-token: write
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/download-artifact@v4
with:
name: Packages
path: dist
- uses: pypa/gh-action-pypi-publish@release/v1