Some checks failed
release-nuget-package / Release NuGet Package (push) Failing after 31s
35 lines
1.3 KiB
YAML
35 lines
1.3 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: "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"
|
|
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 |