From 1cd16199d3ab0b289ce032d85b4843fba67bef16 Mon Sep 17 00:00:00 2001 From: Miles Granger Date: Mon, 6 Nov 2023 19:36:48 +0100 Subject: [PATCH 1/2] Include sdist in release artifacts --- .github/workflows/wheels.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 801ad36..aeceab0 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -26,10 +26,12 @@ jobs: python-version: '3.10' - name: Build wheels run: pip wheel . -w dist + - name: Build Source Dist + run: python setup.py sdist - uses: actions/upload-artifact@v3 with: name: artifacts - path: ./dist/dask_glm* + path: ./dist/dask{-,_}glm* list_artifacts: name: List build artifacts From f5525d102a27adc104cffe632394ac467eb13522 Mon Sep 17 00:00:00 2001 From: Miles Granger Date: Mon, 6 Nov 2023 19:45:39 +0100 Subject: [PATCH 2/2] Git workflows doesn't like my globbing... --- .github/workflows/wheels.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index aeceab0..6100f19 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -30,8 +30,12 @@ jobs: run: python setup.py sdist - uses: actions/upload-artifact@v3 with: - name: artifacts - path: ./dist/dask{-,_}glm* + name: wheel + path: ./dist/dask_glm* + - uses: actions/upload-artifact@v3 + with: + name: sdist + path: ./dist/dask-glm* list_artifacts: name: List build artifacts @@ -40,7 +44,11 @@ jobs: steps: - uses: actions/download-artifact@v3 with: - name: artifacts + name: sdist + path: dist + - uses: actions/download-artifact@v3 + with: + name: wheel path: dist - name: test run: | @@ -59,7 +67,11 @@ jobs: steps: - uses: actions/download-artifact@v3 with: - name: artifacts + name: sdist + path: dist + - uses: actions/download-artifact@v3 + with: + name: wheel path: dist - uses: pypa/gh-action-pypi-publish@release/v1 with: