fixup! [#50] ci: Publish NuGet packages at git.frostfs.info
Some checks failed
DCO / DCO (pull_request) Failing after 22s
lint-build / dotnet8.0 (pull_request) Successful in 34s

This commit is contained in:
Vitaliy Potyarkin 2025-03-13 11:34:59 +03:00
parent 3b8eb5b8da
commit 33779689d7

View file

@ -12,15 +12,17 @@ jobs:
with:
fetch-depth: 0
- name: Build NuGet packages
run: dotnet build # TODO: this should create *.nupkg somewhere
run: dotnet pack
- name: Publish NuGet packages
run: |-
dotnet nuget add source \
--name "$NUGET_REGISTRY" \
--username "$NUGET_REGISTRY_USER" \
--password "$NUGET_REGISTRY_PASSWORD" \
--store-password-in-clear-text \
"$NUGET_REGISTRY_URL"
dotnet nuget push --source "$NUGET_REGISTRY" path/to/package.nupkg # TODO: I don't know what I'm doing %-)
find -iname '*.nupkg' | xargs -d'\n' -t -n1 \
dotnet nuget push --source "$NUGET_REGISTRY"
env:
NUGET_REGISTRY: TrueCloudLab
NUGET_REGISTRY_URL: https://git.frostfs.info/api/packages/TrueCloudLab/nuget/index.json