Skip to content

Updating libraries, moving to net8, removing classic xamarin #49

Updating libraries, moving to net8, removing classic xamarin

Updating libraries, moving to net8, removing classic xamarin #49

Workflow file for this run

name: Build
on:
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
push:
branches:
- master
- dev
- preview
- v*
paths:
- "src/**"
- ".github/workflows/**"
env:
NugetApiKey: ${{secrets.NUGETAPIKEY}}
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.400'
- name: Add .NET 6 Workloads
run: dotnet workload install maui ios android maccatalyst
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Build
run: msbuild Build.slnf /restore /p:Configuration=Release /p:PublicRelease=true
- name: Publish to Nuget
if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/v') }}
run: dotnet nuget push **/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ env.NugetApiKey }}
#- name: Create Release
# id: create_release
# if: ${{ github.ref == 'refs/heads/master' }}
# uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
# with:
# tag_name: ${{ github.ref }}
# release_name: Release ${{ github.ref }}
# body: Release
# draft: false
# prerelease: false