CI: Debugging
Some checks failed
release-nuget-package / Release NuGet Package (push) Failing after 31s

This commit is contained in:
2026-02-13 23:44:04 +01:00
parent 38aedff5c2
commit df9bf69405
2 changed files with 8 additions and 0 deletions

View File

@@ -21,6 +21,10 @@ jobs:
run: dotnet nuget add source --name DAV --username kocoder --password ${{ secrets.REGISTRY_TOKEN_KOCODER }} https://git.kocoder.xyz/api/packages/Diplomarbeit-Absolventenverein/nuget/index.json --store-password-in-clear-text run: dotnet nuget add source --name DAV --username kocoder --password ${{ secrets.REGISTRY_TOKEN_KOCODER }} https://git.kocoder.xyz/api/packages/Diplomarbeit-Absolventenverein/nuget/index.json --store-password-in-clear-text
- name: "Build Interfaces Project" - name: "Build Interfaces Project"
run: dotnet build -c PublishNuget ./Interfaces/Interfaces.csproj run: dotnet build -c PublishNuget ./Interfaces/Interfaces.csproj
- name: "echo and export ref_name"
run: echo ${{ gitea.ref_name }}
- name: "export ref_name"
run: export REF_NAME=${{ gitea.ref_name }}
- name: "Release to Package Registry" - name: "Release to Package Registry"
run: dotnet nuget push --source DAV --api-key ${{ secrets.REGISTRY_TOKEN_KOCODER }} ./Interfaces/Interfaces.*.nupkg run: dotnet nuget push --source DAV --api-key ${{ secrets.REGISTRY_TOKEN_KOCODER }} ./Interfaces/Interfaces.*.nupkg
- name: "Create release" - name: "Create release"

View File

@@ -3,9 +3,13 @@ TargetFramework=$1
ProjectName=$2 ProjectName=$2
Configuration=$3 Configuration=$3
echo "ENV Following:"
env
echo "ENV: ${TargetFramework} ${ProjectName} ${Configuration} RN: ${REF_NAME}" echo "ENV: ${TargetFramework} ${ProjectName} ${Configuration} RN: ${REF_NAME}"
find . -name *.nupkg -delete find . -name *.nupkg -delete
dotnet pack $ProjectName.nuspec "/p:targetframework=${TargetFramework};ProjectName=${ProjectName};configuration=${Configuration}" dotnet pack $ProjectName.nuspec "/p:targetframework=${TargetFramework};ProjectName=${ProjectName};configuration=${Configuration}"