Publish Map Maven 1.6.4 #45
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Map Maven | |
run-name: Publish Map Maven ${{ inputs.version }} | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Version for new release' | |
required: true | |
type: string | |
jobs: | |
build: | |
runs-on: windows-latest | |
env: | |
PUBLISH_PATH: "${{ github.workspace }}/MapMaven/bin/Release/net8.0-windows10.0.19041.0/win10-x64/publish" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Restore workloads | |
run: dotnet workload install maui-windows | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Test | |
run: dotnet test --logger "trx;LogFileName=test-results.trx" | |
- name: Test Report | |
uses: dorny/test-reporter@v1 | |
if: always() | |
with: | |
name: Test results | |
path: "**/test-results.trx" | |
reporter: dotnet-trx | |
fail-on-error: true | |
- name: Publish | |
run: dotnet publish -f net8.0-windows10.0.19041.0 -c Release --self-contained | |
working-directory: "${{ github.workspace }}/MapMaven" | |
- name: Zip build | |
uses: TheDoctor0/[email protected] | |
with: | |
filename: "${{ runner.temp }}/package/MapMaven-${{ inputs.version }}.zip" | |
path: "${{ env.PUBLISH_PATH }}/**" | |
- name: Package build | |
run: > | |
& "$HOME/.nuget/packages/clowd.squirrel/2.11.1/tools/Squirrel.exe" pack | |
--packId "MapMaven" | |
--packVersion "${{ inputs.version }}" | |
--packDirectory "${{ env.PUBLISH_PATH }}" | |
--releaseDir "${{ runner.temp }}/package" | |
--icon "${{ env.PUBLISH_PATH }}/Platforms/Windows/trayicon.ico" | |
--appIcon "${{ env.PUBLISH_PATH }}/Platforms/Windows/trayicon.ico" | |
--splashImage "${{ env.PUBLISH_PATH }}/Platforms/Windows/installation.gif" | |
--packAuthors "DennisvHest" | |
--packTitle "Map Maven" | |
- name: Upload build artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: mapmaven-package | |
path: "${{ runner.temp }}/package" |