1

Add action.yml

This commit is contained in:
Woltvint Němeček 2023-12-20 00:40:10 +00:00
parent 287e277fd3
commit e6f9091a21

12
action.yml Normal file
View File

@ -0,0 +1,12 @@
name: 'BuildAndPublishNuget'
description: 'Builds a solution and publishes all nuget packages'
runs:
using: "composite"
steps:
- name: Check out repository code
uses: actions/checkout@v3
- run: dotnet nuget add source --name Gitea --username $PACKAGE_REPO_USER --password $PACKAGE_REPO_PASS $PACKAGE_REPO_URL_NUGET --store-password-in-clear-text
- run: dotnet restore
- run: dotnet test
- run: dotnet pack -o ./output
- run: dotnet nuget push --source Gitea ./output/*