-
Notifications
You must be signed in to change notification settings - Fork 62
44 lines (38 loc) · 1.1 KB
/
pypi-publish.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
name: Publish to PyPI
on:
workflow_dispatch:
inputs:
run-id:
description: 'Workflow run id'
required: true
jobs:
publish:
runs-on: ubuntu-latest
# https://github.com/pypa/gh-action-pypi-publish?tab=readme-ov-file#trusted-publishing
permissions:
id-token: write
environment:
name: pypi
url: https://pypi.org/p/fpylll
steps:
- uses: actions/download-artifact@v4
with:
pattern: "dist"
path: dist
merge-multiple: true
github-token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
run-id: ${{ github.event.inputs.run-id }}
- uses: actions/download-artifact@v4
with:
pattern: "*-wheels"
path: dist
merge-multiple: true
github-token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
run-id: ${{ github.event.inputs.run-id }}
- uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist/
skip-existing: true
verbose: true