mirror of
https://github.com/zbanks/radiance.git
synced 2026-06-16 04:26:25 +02:00
Update GH action to actually create release
This commit is contained in:
@@ -274,9 +274,37 @@ jobs:
|
||||
radiance-macos-x86_64
|
||||
radiance-macos-aarch64
|
||||
|
||||
create-release:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [build, create-universal-macos]
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
steps:
|
||||
- name: Download all artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
path: artifacts
|
||||
|
||||
- name: Prepare release files
|
||||
run: |
|
||||
mkdir release-files
|
||||
VERSION=${GITHUB_REF#refs/tags/}
|
||||
|
||||
# Linux binaries
|
||||
cp artifacts/radiance-linux-x86_64/radiance release-files/radiance-${VERSION}-linux-x86_64
|
||||
cp artifacts/radiance-linux-aarch64/radiance release-files/radiance-${VERSION}-linux-aarch64
|
||||
|
||||
# Windows binary
|
||||
cp artifacts/radiance-windows-x86_64/radiance.exe release-files/radiance-${VERSION}-windows-x86_64.exe
|
||||
|
||||
# macOS DMG
|
||||
cp artifacts/radiance-macos-universal/Radiance.dmg release-files/Radiance-${VERSION}-macos-universal.dmg
|
||||
|
||||
- name: Create release
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: Radiance.dmg
|
||||
files: |
|
||||
release-files/radiance-*-linux-x86_64
|
||||
release-files/radiance-*-linux-aarch64
|
||||
release-files/radiance-*-windows-x86_64.exe
|
||||
release-files/Radiance-*-macos-universal.dmg
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user