-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
50 lines (41 loc) · 995 Bytes
/
pypi.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
46
47
48
49
50
name: Upload Python Package
on:
release:
types: [published]
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/[email protected]
- name: Set up python
uses: actions/[email protected]
with:
python-version: '3.13'
- name: Install pip dependencies
run: pip install build
- name: List pip dependencies
run: pip list
- name: Build project
run: python3 -m build
- name: Upload artifacts
uses: actions/[email protected]
with:
name: pypi-dist
path: dist/
pypi:
name: pypi
needs:
- build
permissions:
id-token: write
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/[email protected]
with:
name: pypi-dist
path: dist/
- name: Publish to PyPI
uses: pypa/[email protected]