Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Aragas committed Dec 13, 2024
1 parent 5807581 commit 740411e
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/publish-standalone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
release_name: Release ${{ github.ref }}
draft: false
prerelease: true

publish-native:
strategy:
matrix:
Expand Down Expand Up @@ -60,18 +60,25 @@ jobs:
dotnet publish src/BUTR.CrashReport.Renderer.ImGui.Standalone/BUTR.CrashReport.Renderer.ImGui.Standalone.csproj --configuration Release -r "${{ matrix.data.rid }}" -o "./pub";
Compress-Archive -Path pub/* -Destination "native-${{ matrix.data.rid }}.zip"
shell: pwsh

- name: Upload Release Assets
uses: dwenegar/upload-release-assets@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_id: ${{ needs.create-release.outputs.release_id }}
assets_path: "native-${{ matrix.data.rid }}.zip"

publish-standard:
name: Publish Standard
runs-on: ubuntu-latest

publish-universal:
strategy:
matrix:
data: [
{ rid: 'win', os: 'windows-latest' },
{ rid: 'linux', os: 'ubuntu-latest' },
{ rid: 'osx', os: 'macos-latest' }
]
name: Publish Universal ${{ matrix.data.rid }}
runs-on: ${{ matrix.data.os }}
needs: create-release
steps:
- name: Setup
Expand All @@ -92,19 +99,19 @@ jobs:
dotnet publish src/BUTR.CrashReport.Renderer.ImGui.Standalone/BUTR.CrashReport.Renderer.ImGui.Standalone.csproj --configuration Release -p:RuntimeSingleFile=true -o "./pub2";
Compress-Archive -Path pub2/* -Destination "universal-net9-single-file.zip"
shell: pwsh

- name: Upload Release Assets
uses: dwenegar/upload-release-assets@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_id: ${{ needs.create-release.outputs.release_id }}
assets_path: "universal-net9.zip"
assets_path: "net9-${{ matrix.data.rid }}.zip"

- name: Upload Release Assets
uses: dwenegar/upload-release-assets@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_id: ${{ needs.create-release.outputs.release_id }}
assets_path: "universal-net9-single-file.zip"
assets_path: "net9-${{ matrix.data.rid }}-single-file.zip"

0 comments on commit 740411e

Please sign in to comment.