From 5e686801553065af76c9fd7b0f1cee29f97e634c Mon Sep 17 00:00:00 2001 From: "deniz_irgin@yahoo.com" Date: Thu, 18 Nov 2021 18:10:25 +0300 Subject: [PATCH] add support for LocalStack.Client.Extensions to publish-nuget --- .github/workflows/publish-nuget.yml | 6 +++++- .../Properties/launchSettings-example.json | 13 +++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 build/LocalStack.Build/Properties/launchSettings-example.json diff --git a/.github/workflows/publish-nuget.yml b/.github/workflows/publish-nuget.yml index 6d7f52f..155d376 100644 --- a/.github/workflows/publish-nuget.yml +++ b/.github/workflows/publish-nuget.yml @@ -24,7 +24,7 @@ on: - LocalStack.Client.Extensions jobs: - build-and-test: + publish-nuget: runs-on: ubuntu-20.04 steps: @@ -59,6 +59,10 @@ jobs: run: | echo "Package Version: ${{ github.event.inputs.package-version }}" + - name: Remove Project Ref & Add latest pack + if: ${{ github.event.inputs.package-id == 'LocalStack.Client.Extensions' }} + run: cd src/LocalStack.Client.Extensions/ && dotnet remove reference ../LocalStack.Client/LocalStack.Client.csproj && dotnet add package LocalStack.Client + - name: Nuget Pack run: ./build.sh --target nuget-pack --package-source ${{ github.event.inputs.package-source }} --package-id ${{ github.event.inputs.package-id }} --package-version ${{ github.event.inputs.package-version }} diff --git a/build/LocalStack.Build/Properties/launchSettings-example.json b/build/LocalStack.Build/Properties/launchSettings-example.json new file mode 100644 index 0000000..e58c2de --- /dev/null +++ b/build/LocalStack.Build/Properties/launchSettings-example.json @@ -0,0 +1,13 @@ +{ + "profiles": { + "LocalStack.Build": { + "commandName": "Project", + "commandLineArgs": "--target nuget-push --package-version 1.2.3 --package-source myget --package-id LocalStack.Client --package-secret ************************" + }, + "WSL 2": { + "commandName": "WSL2", + "commandLineArgs": "--target get-version", + "distributionName": "Ubuntu-18.04" + } + } +} \ No newline at end of file