Skip to content

Deploy C++

Deploy C++ #64

Workflow file for this run

name: Deploy C++
on:
workflow_dispatch:
inputs:
publish-pypi:
type: boolean
description: Publish to PyPI
jobs:
build-wheels:
uses: ./.github/workflows/build-wheels.yml
upload-awkward-cpp:
needs: [build-wheels]
runs-on: ubuntu-latest
if: inputs.publish-pypi
permissions:
id-token: write
attestations: write
contents: read
environment:
name: "pypi"
url: "https://pypi.org/project/awkward-cpp/"
steps:
- uses: actions/download-artifact@v4
with:
pattern: "awkward-cpp*"
path: dist
merge-multiple: true
- name: List distributions to be deployed
run: ls -l dist/
- name: Generate artifact attestation for sdist and wheel
uses: actions/attest-build-provenance@173725a1209d09b31f9d30a3890cf2757ebbff0d # v1.1.2
with:
subject-path: "dist/awkward-cpp-*"
- uses: pypa/gh-action-pypi-publish@v1.8.14