Files
Interfaces/.gitea/workflows/release-nuget-package.yml
KoCoder 613b1e1843
Some checks failed
release-nuget-package / Release NuGet Package (push) Failing after 25s
CI: Fix: Use correct name
2026-02-13 23:48:44 +01:00

31 lines
1.2 KiB
YAML

name: release-nuget-package
on:
push:
tags:
- '*'
jobs:
build:
name: Release NuGet Package
runs-on: ubuntu-latest
steps:
- name: "Git clone"
run: git clone ${{ gitea.server_url }}/${{ gitea.repository }}.git .
- name: "Git checkout"
run: git checkout "${{ gitea.sha }}"
- name: "Dotnet SDK einrichten"
uses: actions/setup-dotnet@v4
with:
dotnet-version: "10.0.x"
- name: "Configure nuget source"
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"
run: dotnet build -c PublishNuget ./Interfaces/Interfaces.csproj
- name: "Release to Package Registry"
run: dotnet nuget push --source DAV --api-key ${{ secrets.REGISTRY_TOKEN_KOCODER }} ./Interfaces/Interfaces.*.nupkg
- name: "Create release"
uses: akkuman/gitea-release-action@v1
with:
files: |-
./alumnihub.deb
./alumnihub/opt/alumnihub/Packages/*.nupkg