From 9e7edbaefa3b1addd4a5c595fa232bcbf8f21b63 Mon Sep 17 00:00:00 2001 From: Alexander Horner <33007665+alexhorner@users.noreply.github.com> Date: Sat, 14 Sep 2019 13:27:55 +0100 Subject: [PATCH] Added additional examples Includes: - Full publish - Using external package sources --- README.md | 38 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a31feb5..ad68532 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ This action sets up a dotnet environment for use in actions by: See [action.yml](action.yml) -Basic: +##Basic: ```yaml steps: - uses: actions/checkout@master @@ -23,7 +23,7 @@ steps: - run: dotnet build ``` -Matrix Testing: +##Matrix Testing: ```yaml jobs: build: @@ -41,6 +41,40 @@ jobs: - run: dotnet build ``` +##Publishing a standalone copy for Release execution (include all dependencies): +```yaml +steps: +- uses: actions/checkout@v1 +- uses: actions/setup-dotnet@v1 +- name: Restore NuGet Packages + run: dotnet restore +- name: Build + Publish with dotnet + run: dotnet publish --configuration Release +``` + +##Publishing a standalone copy for Release execution (include all dependencies with specified NuGet sources): +```yaml +steps: +- uses: actions/checkout@v1 +- uses: actions/setup-dotnet@v1 +- name: Restore NuGet Packages from nuget.config + run: dotnet restore --configfile nuget.config +- name: Build + Publish with dotnet + run: dotnet publish --configuration Release +``` +###Your nuget.config may look like so, just add your sources under the default source +```xml + + + + + + + + + +``` + # License The scripts and documentation in this project are released under the [MIT License](LICENSE)