Skip to content

Commit

Permalink
update release draft workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
csc530 authored and csc530 committed Aug 1, 2024
1 parent 019be37 commit 1fe010f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,16 @@ jobs:
shell: pwsh
run: |
if ($env:RUNNER_OS -eq "Windows") {
mv ./publish/Resumer.exe ./publish/resumer.exe
7z a ./${{ matrix.os }}_resumer_${{ github.ref_name }}.zip '.\publish\*'
}
else {
zip ./${{ matrix.os }}_resumer_${{ github.ref_name }}.zip ./publish/*
}
}
else {
mv ./publish/Resumer ./publish/resumer
cd ./publish
zip -1g ../${{ matrix.os }}_resumer_${{ github.ref_name }}.zip ./publish/*
zip -u
cd ..
}
- name: Upload Release Asset
run: gh release upload ${{ github.ref_name }} ${{ matrix.os }}_resumer_${{ github.ref_name }}.zip
3 changes: 2 additions & 1 deletion Resumer/resumer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<StartupObject>Resumer.Program</StartupObject>
<AssemblyName>Resumer</AssemblyName>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>

<SuppressTrimAnalysisWarnings>false</SuppressTrimAnalysisWarnings>
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
</PropertyGroup>
Expand All @@ -28,6 +28,7 @@
<PublishReadyToRun>true</PublishReadyToRun>
<DebugType>None</DebugType>
<DebugSymbols>False</DebugSymbols>
<!-- <PublishAot>True</PublishAot> -->
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 1fe010f

Please sign in to comment.