From b5ccd16018fca8515c692d233c2df2f2699e00e5 Mon Sep 17 00:00:00 2001 From: Martin Bubel Date: Wed, 20 Dec 2023 22:58:42 +0100 Subject: [PATCH] ci: add artifacts --- .github/workflows/actions.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index f2e43931b..248c7e8ac 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -44,10 +44,16 @@ jobs: pip install wheel python setup.py bdist_wheel + - name: Archive build artifacts + uses: actions/upload-artifact@v4 + with: + name: build-artifacts + path: dist + deploy: runs-on: ubuntu-latest needs: develop-matrix - # if: github.event_name == 'release' && github.event.action == 'created' + if: github.event_name == 'release' && github.event.action == 'created' steps: - name: Checkout uses: actions/checkout@v4 @@ -62,9 +68,15 @@ jobs: pip install --upgrade pip pip install twine + - name: Download build artifacts + uses: actions/download-artifact@v4 + with: + name: build-artifacts + path: dist + - name: Inspect dist files run: | - ls -la dist/ + ls -la dist - name: Upload to PyPI using twine run: |