fix nuget version attempt 2
All checks were successful
.NET Test / test (push) Successful in 53s
.NET Publish / publish (push) Successful in 46s

This commit is contained in:
2023-11-27 23:26:18 +04:00
parent 3030c671d2
commit e475185dc8
2 changed files with 2 additions and 5 deletions

View File

@@ -27,7 +27,7 @@ jobs:
- name: Create the package
env:
RELEASE_VERSION: ${{ gitea.event.release.tag_name }}
run: dotnet pack --no-restore --configuration Release --output nupkgs Railway/Railway.csproj `sed -E 's|^(v([0-9]+(\.[0-9]+){2}))(-([a-z0-9]+)){1}|--property:ReleaseVersion=\2 --property:VersionSuffix=\5|; s|^(v([0-9]+(\.[0-9]+){2}))$|--property:ReleaseVersion=\2|'`
run: dotnet pack --no-restore --configuration Release --output nupkgs Railway/Railway.csproj `sed -E 's|^(v([0-9]+(\.[0-9]+){2}))(-([a-z0-9]+)){1}|/p:ReleaseVersion=\2 /p:VersionSuffix=\5|; s|^(v([0-9]+(\.[0-9]+){2}))$|/p:ReleaseVersion=\2|'`
- name: Publish the package to Gitea
run: dotnet nuget push --source gitea_registry --api-key ${{ secrets.NUGET_PACKAGE_TOKEN }} nupkgs/*.nupkg