From 3f9c839bb53e9b8600e41a1ede1be4a991ee914c Mon Sep 17 00:00:00 2001 From: Patrick Sanders Date: Thu, 12 Sep 2024 10:15:06 -0700 Subject: [PATCH] try storing artifacts --- .github/workflows/release.yaml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 8eee7b3..0f3b91a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -15,22 +15,24 @@ jobs: name: Build package # if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest - strategy: - matrix: - python-version: [ "3.10", "3.11" ] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: - python-version: ${{ matrix.python-version }} + python-version: "3.10" - name: Install hatch run: | python -m pip install hatch - name: Build dist run: | hatch build + - name: Store the distribution packages + uses: actions/upload-artifact@v4 + with: + name: python-package-distributions + path: dist/ # pypi-publish: # name: Upload release to PyPI @@ -42,6 +44,11 @@ jobs: # permissions: # id-token: write # steps: +# - name: Download all the dists +# uses: actions/download-artifact@v4 +# with: +# name: python-package-distributions +# path: dist/ # - name: Publish package distributions to PyPI # uses: pypa/gh-action-pypi-publish@release/v1 @@ -55,5 +62,10 @@ jobs: permissions: id-token: write steps: + - name: Download all the dists + uses: actions/download-artifact@v4 + with: + name: python-package-distributions + path: dist/ - name: Publish package distributions to PyPI uses: pypa/gh-action-pypi-publish@release/v1