|
@@ -23,16 +23,22 @@ runs:
|
|
shell: bash
|
|
shell: bash
|
|
run: dotnet test
|
|
run: dotnet test
|
|
|
|
|
|
- - name: Publish
|
|
|
|
|
|
+ - name: Create Binaries
|
|
shell: bash
|
|
shell: bash
|
|
run: |
|
|
run: |
|
|
dotnet tool install --global wix --version 4.0.6
|
|
dotnet tool install --global wix --version 4.0.6
|
|
for arch in ${{ inputs.archs }}; do
|
|
for arch in ${{ inputs.archs }}; do
|
|
dotnet publish ./DesktopClock/DesktopClock.csproj -o "publish/$arch" -c Release --os win --arch $arch -p:Version=${{ inputs.version }}
|
|
dotnet publish ./DesktopClock/DesktopClock.csproj -o "publish/$arch" -c Release --os win --arch $arch -p:Version=${{ inputs.version }}
|
|
wix build Product.wxs -d MainExeSource="publish/$arch/DesktopClock.exe" -o "publish/$arch/DesktopClock-installer-${{ inputs.version }}-${arch}.msi"
|
|
wix build Product.wxs -d MainExeSource="publish/$arch/DesktopClock.exe" -o "publish/$arch/DesktopClock-installer-${{ inputs.version }}-${arch}.msi"
|
|
- zip "publish/$arch/DesktopClock-portable-${{ inputs.version }}-${arch}.zip" "publish/$arch/DesktopClock.exe"
|
|
|
|
done
|
|
done
|
|
|
|
|
|
|
|
+ - name: Create Portable ZIPs
|
|
|
|
+ shell: pwsh
|
|
|
|
+ run: |
|
|
|
|
+ foreach ($arch in "${{ inputs.archs }}".Split(' ')) {
|
|
|
|
+ Compress-Archive -Path "publish/$arch/DesktopClock.exe" -DestinationPath "publish/$arch/DesktopClock-portable-${{ inputs.version }}-$arch.zip"
|
|
|
|
+ }
|
|
|
|
+
|
|
- uses: actions/upload-artifact@v4
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
with:
|
|
path: |
|
|
path: |
|