Skip to content

Commit

Permalink
fix: refactor and fix release.yml.
Browse files Browse the repository at this point in the history
  • Loading branch information
echokrist committed Jan 12, 2025
1 parent 09bc531 commit bc97b9e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build and Publish on Release

on:
release:
types: [ published ]
types: [published]

jobs:
publish:
Expand All @@ -11,7 +11,7 @@ jobs:

strategy:
matrix:
os: [ osx-x64, osx-arm64, linux-x64, linux-arm64, win-x64, win-arm64 ]
os: [osx-x64, osx-arm64, linux-x64, linux-arm64, win-x64, win-arm64]

steps:
# Checkout the code
Expand All @@ -24,19 +24,22 @@ jobs:
with:
dotnet-version: '9.0.101'

# Publish the application
# Publish the application with custom options
- name: Publish for ${{ matrix.os }}
run: |
echo "Publishing for ${{ matrix.os }}..."
dotnet publish ./src/DCEUI.sln -c Release -r ${{ matrix.os }} \
/p:PublishSingleFile=true \
/p:IncludeNativeLibrariesForSelfExtract=false \
/p:PublishTrimmed=true \
/p:TrimMode=Link \
/p:UseAppHost=true \
--self-contained true
# Zip the published binaries
- name: Zip binaries
run: |
echo "Zipping binaries for ${{ matrix.os }}..."
mkdir -p artifacts
zip -r artifacts/binary-${{ matrix.os }}.zip ./src/**/bin/Release/net*/${{ matrix.os }}/publish/*
Expand Down
File renamed without changes.

0 comments on commit bc97b9e

Please sign in to comment.