[ADD] Workflow pack to nuget package and publish to Gitea packages
Some checks failed
Build C# Library / build (push) Failing after 57s
Some checks failed
Build C# Library / build (push) Failing after 57s
This commit is contained in:
@@ -26,5 +26,19 @@ jobs:
|
||||
- name: Build library
|
||||
run: dotnet build --configuration Release
|
||||
|
||||
- name: Run unit tests
|
||||
run: dotnet test --configuration Release --no-build
|
||||
- name: Pack
|
||||
run: dotnet pack MyLibrary.csproj --configuration Release -o ./artifacts
|
||||
|
||||
- name: Publish to Gitea NuGet
|
||||
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 }}
|
Reference in New Issue
Block a user