Skip to content

feat(map): update avalonia to 11.1.0. (#16) #39

feat(map): update avalonia to 11.1.0. (#16)

feat(map): update avalonia to 11.1.0. (#16) #39

Workflow file for this run

name: Build and Release
on:
push:
tags:
- 'v*'
permissions:
actions: write
contents: write
jobs:
build-and-release:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
# here you must define where your project is stored
- name: Install dependencies
run: dotnet restore ./src
# here you must define path to your .sln
- name: Build project
run: dotnet build ./src/Asv.Avalonia.Map.sln --configuration Release --no-restore
# here you must define path to your .csproj
- name: Publish project for installer
run: dotnet publish ./src/Asv.Avalonia.Map.Demo/Asv.Avalonia.Map.Demo.csproj -c Release -o ./publish/app
- name: Install NSIS
run: choco install nsis
#here you must define path to your .nsi file (it is used for installer setup and creation)
- name: Create EXE installer
run: makensis ./setup.nsi
- name: List output files
run: Get-ChildItem -Path ./publish/app -Force
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: ${{ contains(github.ref, 'alpha') }}
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./AvaloniaAppInstaller.exe # path to the installer file
asset_name: asv-avalonia-map-demo-${{ github.ref_name }}-setup.exe
asset_content_type: application/vnd.microsoft.portable-executable