[ADD] Workflow pack to nuget package and publish to Gitea packages
Some checks failed
Build C# Library / build (push) Failing after 57s

This commit is contained in:
max
2025-08-02 16:00:16 +02:00
parent ce4139d100
commit c3f58eb172

View File

@@ -25,6 +25,20 @@ jobs:
- name: Build library - name: Build library
run: dotnet build --configuration Release run: dotnet build --configuration Release
- name: Pack
run: dotnet pack MyLibrary.csproj --configuration Release -o ./artifacts
- name: Run unit tests - name: Publish to Gitea NuGet
run: dotnet test --configuration Release --no-build run: |
dotnet nuget add source \
--username $GITEA_USER \
--password $GITEA_TOKEN \
--store-password-in-clear-text \
--name gitea \
https://gitea.netzbyte.com/api/packages/$GITEA_USER/nuget/index.json
dotnet nuget push ./artifacts/*.nupkg --source gitea --skip-duplicate
env:
GITEA_USER: max
GITEA_TOKEN: ${{ secrets.PACKAGES_TOKEN }}