Skip to content

Commit

Permalink
Build source tarball
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Sep 7, 2024
1 parent 15104b5 commit 9f12eb4
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 4 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/deploy-package-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
23 changes: 21 additions & 2 deletions .github/workflows/package-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9f12eb4

Please sign in to comment.