12 lines
513 B
YAML
12 lines
513 B
YAML
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/* |