Publish prerelease SDK to NuGet. Switch to multi-target
This commit is contained in:
parent
52dd3f23ba
commit
4fde39a729
3 changed files with 12 additions and 3 deletions
11
.github/workflows/LANCommander.SDK.Release.yml
vendored
11
.github/workflows/LANCommander.SDK.Release.yml
vendored
|
|
@ -4,6 +4,7 @@ on:
|
|||
push:
|
||||
tags:
|
||||
- 'v[0-9]+.[0-9]+.[0-9]+'
|
||||
- 'v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+'
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
|
@ -13,7 +14,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
version_tag: ${{ steps.trim_tag_ref.outputs.replaced }}
|
||||
version_semver: ${{ steps.trim_tag_ref.outputs.replaced }}
|
||||
version_semver: ${{ steps.extract_semver.outputs.replaced }}
|
||||
steps:
|
||||
- uses: frabert/replace-string-action@v2
|
||||
name: Trim Tag Ref
|
||||
|
|
@ -23,6 +24,14 @@ jobs:
|
|||
pattern: 'refs/tags/v'
|
||||
replace-with: ''
|
||||
|
||||
- uses: frabert/replace-string-action@v2
|
||||
name: Extract SemVer (strip prerelease suffix for AssemblyVersion)
|
||||
id: extract_semver
|
||||
with:
|
||||
string: '${{ steps.trim_tag_ref.outputs.replaced }}'
|
||||
pattern: '-.*$'
|
||||
replace-with: ''
|
||||
|
||||
publish:
|
||||
needs: prep
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
|
||||
<Version>1.1.0</Version>
|
||||
<Authors>pathartl</Authors>
|
||||
<Company>LANCommander</Company>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
|
||||
<LangVersion>latestmajor</LangVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue