From 2d8e8b2e5e22a57da7b3cdba5bf40bd89332bc6a Mon Sep 17 00:00:00 2001 From: JustFixMe Date: Mon, 27 Nov 2023 22:45:02 +0400 Subject: [PATCH] fix api key parameter --- .gitea/workflows/publish-nuget.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/publish-nuget.yaml b/.gitea/workflows/publish-nuget.yaml index eeb141d..a849c23 100644 --- a/.gitea/workflows/publish-nuget.yaml +++ b/.gitea/workflows/publish-nuget.yaml @@ -25,13 +25,13 @@ jobs: run: dotnet build --no-restore --configuration Release Railway/Railway.csproj - name: Setup nuget source - run: dotnet nuget add source --name gitea_registry --api-key ${{ secrets.NUGET_PACKAGE_TOKEN }} https://gitea.example.com/api/packages/just/nuget/index.json + run: dotnet nuget add source --name gitea_registry https://gitea.example.com/api/packages/just/nuget/index.json - name: Create the package env: RELEASE_VERSION: ${{ gitea.event.release.tag_name }} run: dotnet pack --no-build --configuration Release --output nupkgs Railway/Railway.csproj `echo $RELEASE_VERSION | 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|'` - - name: Publish the package - run: dotnet nuget push --source gitea_registry nupkgs/*.nupkg + - name: Publish the package to Gitea + run: dotnet nuget push --source gitea_registry --api-key ${{ secrets.NUGET_PACKAGE_TOKEN }} nupkgs/*.nupkg