-
Notifications
You must be signed in to change notification settings - Fork 76
45 lines (36 loc) · 1.08 KB
/
deploy.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
43
44
45
name: Deploy to PyPI
on:
workflow_dispatch:
release:
types:
- published
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build_dist:
name: Build and upload sdist and wheel
if: github.repository_owner == 'scikit-hep'
uses: ./.github/workflows/build-distributions.yml
publish:
needs: [build_dist]
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
permissions:
id-token: write
attestations: write
contents: read
steps:
- uses: actions/download-artifact@v4
with:
name: distribution-artifact
path: dist
- name: List distributions to be deployed
run: ls -lha dist/
- name: Generate artifact attestation for sdist and wheel
uses: actions/attest-build-provenance@1c608d11d69870c2092266b3f9a6f3abbf17002c # v1.4.3
with:
subject-path: dist/uproot-*
- uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.pypi_password }}