fix api key parameter
All checks were successful
.NET Test / test (push) Successful in 1m29s

This commit is contained in:
2023-11-27 22:45:02 +04:00
parent a53212fdc0
commit 2d8e8b2e5e

View File

@@ -25,13 +25,13 @@ jobs:
run: dotnet build --no-restore --configuration Release Railway/Railway.csproj run: dotnet build --no-restore --configuration Release Railway/Railway.csproj
- name: Setup nuget source - 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 - name: Create the package
env: env:
RELEASE_VERSION: ${{ gitea.event.release.tag_name }} 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|'` 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 - name: Publish the package to Gitea
run: dotnet nuget push --source gitea_registry nupkgs/*.nupkg run: dotnet nuget push --source gitea_registry --api-key ${{ secrets.NUGET_PACKAGE_TOKEN }} nupkgs/*.nupkg