-
Notifications
You must be signed in to change notification settings - Fork 11
43 lines (40 loc) · 1.05 KB
/
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
name: Deploy to PYPI
on:
workflow_dispatch:
jobs:
sdist:
name: Build sdist
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build sdist
run: python -m build --sdist
- uses: actions/upload-artifact@v4
with:
name: dist
path: ./dist/*.tar.gz
# publish:
# name: Publish wheels to pypi
# runs-on: ubuntu-24.04
# permissions:
# # IMPORTANT: this permission is mandatory for trusted publishing
# id-token: write
# needs: sdist
# steps:
# - uses: actions/download-artifact@v4
# with:
# name: dist
# path: dist
# - name: copy to wheelhouse
# run: |
# # cp -r wheelhouse/*/*.whl dist
# - uses: pypa/gh-action-pypi-publish@release/v1
# with:
# skip-existing: true
# verbose: true
# packages-dir: dist/