forked from scikit-hep/awkward
-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (34 loc) · 968 Bytes
/
deploy-cpp.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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@1c608d11d69870c2092266b3f9a6f3abbf17002c # v1.4.3
with:
subject-path: "dist/awkward*cpp-*"
- uses: pypa/[email protected]