Skip to content

Commit

Permalink
Update GitHub Actions workflow with improved build and packaging steps
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjaeon committed Nov 16, 2024
1 parent bbf5861 commit df7ea75
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,25 @@ jobs:
run: nuget restore WelcomeScreenCustomizer.sln

- name: Build Solution
run: msbuild WelcomeScreenCustomizer.sln /p:Configuration=Release
run: msbuild WelcomeScreenCustomizer.sln /p:Configuration=Release /p:Platform="Any CPU"

- name: List Build Output
run: |
dir /s bin
dir /s WelcomeScreenCustomizer.exe
- name: Create Release ZIP
run: |
Compress-Archive -Path "bin\Release\WelcomeScreenCustomizer.exe" -DestinationPath "WelcomeScreenCustomizer.zip"
New-Item -ItemType Directory -Force -Path .\Release
Copy-Item ".\bin\Release\WelcomeScreenCustomizer.exe" -Destination ".\Release\"
Copy-Item ".\app.ico" -Destination ".\Release\"
Compress-Archive -Path ".\Release\*" -DestinationPath "WelcomeScreenCustomizer.zip" -Force
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: WelcomeScreenCustomizer.zip
draft: false
Expand Down

0 comments on commit df7ea75

Please sign in to comment.