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: "Get configured dotnet sources" run: dotnet nuget list sources - name: "Build Interfaces Project" run: dotnet build -c PublishNuget ./Interfaces/Interfaces.csproj - name: "Release to Package Registry" run: dotnet nuget push --source gitea --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