diff --git a/.github/workflows/deploy-package-action.yml b/.github/workflows/deploy-package-action.yml index 97fa3dd..8ba569a 100644 --- a/.github/workflows/deploy-package-action.yml +++ b/.github/workflows/deploy-package-action.yml @@ -8,16 +8,22 @@ jobs: runs-on: ubuntu-latest environment: release steps: + - name: Download Source Tarball + uses: actions/download-artifact@v4 + with: + name: Source Tarball + path: dist + - name: Download x86 Python Package Artifacts uses: actions/download-artifact@v4 with: - name: dist-x86_64 + name: Python Wheel x86_64 path: dist - name: Download arm64 Python Package Artifacts uses: actions/download-artifact@v4 with: - name: dist-aarch64 + name: Python Wheel aarch64 path: dist - name: List dist directory diff --git a/.github/workflows/package-action.yml b/.github/workflows/package-action.yml index 2ef4068..e39a335 100644 --- a/.github/workflows/package-action.yml +++ b/.github/workflows/package-action.yml @@ -23,6 +23,25 @@ on: value: "${{ jobs.build.outputs.version }}" jobs: + build-source: + name: Build Python Wheel + runs-on: ubuntu-latest + steps: + - name: Install build + run: | + python -m pip install --upgrade pip + python -m pip install build + - name: Build Source Tarball + run: | + python3 -m build -s + + - name: Python Build Artifact + uses: actions/upload-artifact@v4 + with: + name: Source Tarball + path: dist/* + retention-days: 5 + build: name: Build Python Wheel strategy: @@ -81,8 +100,8 @@ jobs: uses: actions/upload-artifact@v4 if: always() with: - name: dist-${{ matrix.host }} - path: dist/* + name: Python Wheel ${{ matrix.host }} + path: dist/*.whl retention-days: 5 - name: Read Version