Skip to content

2024.04.23

2024.04.23 #15

Workflow file for this run

name: CD
on:
workflow_dispatch:
release:
types:
- published
jobs:
dist:
name: Distribution build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: hynek/build-and-inspect-python-package@v2
publish:
name: Publish
needs: [dist]
environment:
name: pypi
url: https://pypi.org/p/sp-repo-review
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