Skip to content

Commit

Permalink
Expand github release to include python builds
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Oct 26, 2024
1 parent c0cfde9 commit 76341b3
Showing 1 changed file with 92 additions and 0 deletions.
92 changes: 92 additions & 0 deletions .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,84 @@ jobs:
release:
name: Create Github Release
runs-on: ubuntu-latest
strategy:
matrix:
include:
- platform: linux-gnu
arch: x86_64
python: 3.10.15
- platform: linux-gnu
arch: x86_64
python: 3.11.10
- platform: linux-gnu
arch: x86_64
python: 3.12.7
- platform: linux-gnu
arch: x86_64
python: 3.13.0
- platform: linux-gnu
arch: aarch64
python: 3.10.15
- platform: linux-gnu
arch: aarch64
python: 3.11.10
- platform: linux-gnu
arch: aarch64
python: 3.12.7
- platform: linux-gnu
arch: aarch64
python: 3.13.0

- platform: win
arch: x86
python: 3.10.15
- platform: win
arch: x86
python: 3.11.10
- platform: win
arch: x86
python: 3.12.7
- platform: win
arch: x86
python: 3.13.0
- platform: win
arch: amd64
python: 3.10.15
- platform: win
arch: amd64
python: 3.11.10
- platform: win
arch: amd64
python: 3.12.7
- platform: win
arch: amd64
python: 3.13.0

- platform: macos
arch: x86_64
python: 3.10.15
- platform: macos
arch: x86_64
python: 3.11.10
- platform: macos
arch: x86_64
python: 3.12.7
- platform: macos
arch: x86_64
python: 3.13.0
- platform: macos
arch: arm64
python: 3.10.15
- platform: macos
arch: arm64
python: 3.11.10
- platform: macos
arch: arm64
python: 3.12.7
- platform: macos
arch: arm64
python: 3.13.0

steps:
- name: Download Python Build Artifacts
uses: actions/download-artifact@v4
Expand All @@ -24,6 +102,12 @@ jobs:
name: Python Wheel
path: dist

- name: Download Artifacts
uses: actions/download-artifact@v4
with:
name: ${{ matrix.python }}-${{ matrix.arch }}-${{ matrix.platform }}.tar.xz
path: release-artifacts/

- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand Down Expand Up @@ -58,3 +142,11 @@ jobs:
asset_path: dist/relenv-${{ inputs.version }}-py3-none-any.whl
asset_name: relenv-${{ inputs.version }}-py3-none-any.whl
asset_content_type: application/zip

- name: Upload Release artifacts
id: upload-release-asset-x86_64
uses: actions/upload-release-asset@v1
with:
name: ${{ matrix.python }}-${{ matrix.arch }}-${{ matrix.platform }}.tar.xz
path: release-artifacts/
asset_content_type: application/tar+xz

0 comments on commit 76341b3

Please sign in to comment.