Skip to content

Commit

Permalink
release add inno
Browse files Browse the repository at this point in the history
  • Loading branch information
null511 committed Oct 17, 2024
1 parent f7de6ef commit 378e429
Showing 1 changed file with 33 additions and 5 deletions.
38 changes: 33 additions & 5 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,29 @@ jobs:
name: ui
path: publish

compile_inno:
name: Compile Installer
runs-on: windows-latest
image: eckertj/inno-setup
steps:
- name: Setup .NET 6.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.0.x'
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Compile Binaries
run: |
dotnet publish PixelGraph.UI -c Release -r win-x64 -o publish -p:EnableWindowsTargeting=true --self-contained false
iscc ./Inno/setup.iss
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: inno
path: publish

publish_release:
name: Publish Release
runs-on: ubuntu-latest
Expand All @@ -78,13 +101,17 @@ jobs:
uses: actions/download-artifact@v4
with:
name: ui
- name: Download Inno Artifact
uses: actions/download-artifact@v4
with:
name: inno
- name: Move/Rename Binaries
run: |
mv ./publish/win-cli-x64/PixelGraph.exe ./PixelGraph-CLI-Windows-x64.exe
mv ./publish/linux-cli-x64/PixelGraph ./PixelGraph-CLI-Linux-x64
mv ./publish/osx-cli-x64/PixelGraph ./PixelGraph-CLI-OSX-x64
mv ./publish/win-ui-x64/PixelGraph.exe ./PixelGraph-UI-Windows-x64.exe
mv ./publish/WineHQ-UI-x64.zip ./PixelGraph-UI-WineHQ-x64.zip
mv ./win-cli-x64/PixelGraph.exe ./PixelGraph-CLI-Windows-x64.exe
mv ./linux-cli-x64/PixelGraph ./PixelGraph-CLI-Linux-x64
mv ./osx-cli-x64/PixelGraph ./PixelGraph-CLI-OSX-x64
mv ./win-ui-x64/PixelGraph.exe ./PixelGraph-UI-Windows-x64.exe
mv ./WineHQ-UI-x64.zip ./PixelGraph-UI-WineHQ-x64.zip
- name: Release
uses: softprops/action-gh-release@v2
with:
Expand All @@ -99,6 +126,7 @@ jobs:
PixelGraph-CLI-OSX-x64
PixelGraph-UI-Windows-x64.exe
PixelGraph-UI-WineHQ-x64.zip
PixelGraph-UI-* Install.exe
publish_docker:
if: ${{ github.event.inputs.publish_docker == 'true' }}
Expand Down

0 comments on commit 378e429

Please sign in to comment.