4 Commits

Author SHA1 Message Date
a798ee544e CI: Variablen testen
Some checks failed
release-nuget-package / Release NuGet Package (push) Failing after 25s
2026-02-13 20:30:47 +01:00
aece91aff0 CI: Print Vars and add source
Some checks failed
release-nuget-package / Release NuGet Package (push) Failing after 27s
2026-02-13 20:13:48 +01:00
b1786eb578 CI: fix dotnet nuget list source
Some checks failed
release-nuget-package / Release NuGet Package (push) Failing after 28s
2026-02-13 20:00:44 +01:00
79d7058e66 Fix: release.sh - okay, dass war peinlich
Some checks failed
release-nuget-package / Release NuGet Package (push) Failing after 29s
2026-02-13 19:54:54 +01:00
2 changed files with 7 additions and 4 deletions

View File

@@ -17,12 +17,12 @@ jobs:
uses: actions/setup-dotnet@v4 uses: actions/setup-dotnet@v4
with: with:
dotnet-version: "10.0.x" dotnet-version: "10.0.x"
- name: "Get configured dotnet sources" - name: "Configure nuget source"
run: dotnet nuget list sources 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: "Release to Package Registry" - name: "Release to Package Registry"
run: dotnet nuget push --source gitea --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"
uses: akkuman/gitea-release-action@v1 uses: akkuman/gitea-release-action@v1
with: with:

View File

@@ -3,10 +3,13 @@ TargetFramework=$1
ProjectName=$2 ProjectName=$2
Configuration=$3 Configuration=$3
echo "ENV: ${TargetFramework} ${ProjectName} ${Configuration} RN: ${ gitea.ref_name } :NR ${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}"
if [ $Configuration -eq 'PublishNuget' ]; then if [ $Configuration == 'PublishNuget' ]; then
echo "Skipping copy to Oqtane.Server/Packages" echo "Skipping copy to Oqtane.Server/Packages"
else else
echo "Copy to Oqtane.Server/Packages" echo "Copy to Oqtane.Server/Packages"