diff --git a/.gitea/workflows/publish-nuget.yaml b/.gitea/workflows/publish-nuget.yaml index 4d6b7e8..8fe8683 100644 --- a/.gitea/workflows/publish-nuget.yaml +++ b/.gitea/workflows/publish-nuget.yaml @@ -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 diff --git a/Railway/Railway.csproj b/Railway/Railway.csproj index 929e9ec..0bc2348 100644 --- a/Railway/Railway.csproj +++ b/Railway/Railway.csproj @@ -12,6 +12,7 @@ JustFixMe Copyright (c) 2023 JustFixMe MIT + https://github.com/JustFixMe/Just.Railway/ true 1.0.0