added deploy to nuget.org
All checks were successful
.NET Test / test (push) Successful in 4m33s

This commit is contained in:
2023-12-13 19:29:04 +04:00
parent e21c35a08a
commit 3a8bf9394e
2 changed files with 4 additions and 2 deletions

View File

@@ -29,9 +29,10 @@ jobs:
RELEASE_VERSION: ${{ gitea.ref_name }}
run: >
dotnet pack --no-restore --configuration Release --output nupkgs Railway/Railway.csproj
/p:RepositoryUrl=${{ gitea.server_url }}/${{ gitea.repository }}/
`echo $RELEASE_VERSION | 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
run: dotnet nuget push --source gitea_registry --api-key ${{ secrets.LOCAL_NUGET_PACKAGE_TOKEN }} nupkgs/*.nupkg
- name: Publish the package to NuGet.org
run: dotnet nuget push --api-key ${{ secrets.NUGET_PACKAGE_TOKEN }} nupkgs/*.nupkg