diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..6bf45ec --- /dev/null +++ b/action.yml @@ -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/* \ No newline at end of file