Skip to content

Commit 61550ea

Browse files
committed
Build a source distribution package
Signed-off-by: Sahas Subramanian <[email protected]>
1 parent 798a98a commit 61550ea

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,25 @@ jobs:
112112
path: dist/
113113
if-no-files-found: error
114114

115+
build-sdist:
116+
name: Build source distribution packages
117+
runs-on: ubuntu-24.04
118+
steps:
119+
- uses: actions/checkout@v5
120+
- name: Build sdist
121+
uses: PyO3/maturin-action@v1
122+
with:
123+
command: sdist
124+
args: --out dist
125+
- name: Upload sdist
126+
uses: actions/upload-artifact@v4
127+
with:
128+
name: dist-packages-sdist
129+
path: dist
130+
115131
test-installation:
116132
name: Test package installation
117-
needs: ["build"]
133+
needs: ["build", "build-sdist"]
118134
strategy:
119135
fail-fast: false
120136
matrix:
@@ -325,7 +341,7 @@ jobs:
325341
--generate-notes \
326342
$extra_opts \
327343
$REF_NAME \
328-
dist/dist-packages-*/*.whl
344+
dist/dist-packages-*/*.whl dist/dist-packages-sdist/*.tar.gz
329345
env:
330346
REF_NAME: ${{ github.ref_name }}
331347
REPOSITORY: ${{ github.repository }}

0 commit comments

Comments
 (0)