Skip to content

Commit

Permalink
add support for LocalStack.Client.Extensions to publish-nuget
Browse files Browse the repository at this point in the history
  • Loading branch information
Blind-Striker committed Nov 18, 2021
1 parent c5e4d3c commit 5e68680
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/publish-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ on:
- LocalStack.Client.Extensions

jobs:
build-and-test:
publish-nuget:
runs-on: ubuntu-20.04

steps:
Expand Down Expand Up @@ -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 }}

Expand Down
13 changes: 13 additions & 0 deletions build/LocalStack.Build/Properties/launchSettings-example.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}

0 comments on commit 5e68680

Please sign in to comment.