Skip to content

Commit

Permalink
Update source gen to use .NET 8
Browse files Browse the repository at this point in the history
  • Loading branch information
tobysmith568 committed Jan 14, 2024
1 parent 6e418a5 commit 0763f66
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ jobs:
name: nuget-packages
path: "**/*.nupkg"

# - name: Publish LicenseIdentifiers
# run: dotnet nuget push "**/*.nupkg" --skip-duplicate --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
# - name: Publish LicenseIdentifiers
# run: dotnet nuget push "**/*.nupkg" --skip-duplicate --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}

create-release:
name: Create GitHub Release
Expand All @@ -53,7 +53,7 @@ jobs:
- name: Calculate Version
id: calculate-version
run: |
$rcVersion = ${{ github.ref }} -Replace "^refs/tags/release/"
$rcVersion = "${{ github.ref }}" -Replace "^refs/tags/release/"
$releaseVersion = $rcVersion -Replace "-rc.*$"
Write-Host "Release version: $releaseVersion"
"version=$releaseVersion" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
Expand Down Expand Up @@ -84,8 +84,8 @@ jobs:

- name: Debug Logs
run: |
Write-Host "Tag name: ${{ github.ref }}"
Write-Host "Body: ${{ steps.create-release-body.outputs.body }}"
Write-Host "Tag name: ${{ github.ref }}"
Write-Host "Body: ${{ steps.create-release-body.outputs.body }}"
# - name: Create Release
# uses: softprops/action-gh-release@v1
Expand Down
2 changes: 1 addition & 1 deletion Generator/CsprojGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public static string GenerateContent(string version)
return @$"<Project Sdk=""Microsoft.NET.Sdk"">
<PropertyGroup>
<TargetFramework>net50</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Version>{version}</Version>
</PropertyGroup>
</Project>";
Expand Down
2 changes: 1 addition & 1 deletion Generator/NuspecGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static string GenerateContent(string version, string releaseDescription)
<tags>license,licence,SPDX,OSS,parse</tags>
</metadata>
<files>
<file src=""bin/Release/net50/LicenseIdentifiers.dll"" target=""lib"" />
<file src=""bin/Release/netstandard2.0/LicenseIdentifiers.dll"" target=""lib"" />
</files>
</package>";
}
Expand Down
7 changes: 4 additions & 3 deletions LicenseIdentifiers/LicenseIdentifiers.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<license type="expression">ISC</license>
<projectUrl>http://github.com/TobyAndToby/License-Identifiers</projectUrl>
<description>SPDX-compliant license enum class. Validate and parse all verified SPDX license identifiers from version SPDX 3.12.</description>
<description>SPDX-compliant license enum class. Validate and parse all verified SPDX license
identifiers from version SPDX 3.12.</description>
<releaseNotes>SPDX Data for the Version 3.12 of the license list

See https://github.com/spdx/license-list-XML/releases/tag/v3.12 for summary of changes</releaseNotes>
See https://github.com/spdx/license-list-XML/releases/tag/v3.12 for summary of changes</releaseNotes>
<tags>license,licence,SPDX,OSS,parse</tags>
</metadata>
<files>
<file src="bin/Release/net50/LicenseIdentifiers.dll" target="lib" />
<file src="bin/Release/netstandard2.0/LicenseIdentifiers.dll" target="lib" />
</files>
</package>

0 comments on commit 0763f66

Please sign in to comment.