Skip to content

ci: missing needs in deploy (#102) #61

ci: missing needs in deploy (#102)

ci: missing needs in deploy (#102) #61

Workflow file for this run

name: deploy
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
tags:
- v*
jobs:
dist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: hynek/build-and-inspect-python-package@v2
deploy:
needs: [dist]
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
permissions:
attestations: write
steps:
- uses: actions/download-artifact@v4
with:
name: Packages
path: dist
- name: Generate artifact attestation for sdist and wheel
uses: actions/attest-build-provenance@v2
with:
subject-path: "dist/*"
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.pypi_password }}