-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 858 Bytes
/
python-publish.yml
File metadata and controls
35 lines (33 loc) · 858 Bytes
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
name: Wheels
on:
push:
tags:
- v*
workflow_dispatch:
jobs:
make_sdist:
name: Make SDist
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Build SDist
run: pipx run build --sdist
- uses: actions/upload-artifact@v4
with:
name: sdist-artifact # Explicitly name the artifact
path: dist/*.tar.gz
upload_all:
needs: make_sdist
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: sdist-artifact # Matching the name from the upload step
path: dist
- uses: pypa/gh-action-pypi-publish@v1.10.2
with:
skip-existing: true # Updated to kebab-case
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}