Skip to content

Commit 5e68680

Browse files
committed
add support for LocalStack.Client.Extensions to publish-nuget
1 parent c5e4d3c commit 5e68680

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.github/workflows/publish-nuget.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ on:
2424
- LocalStack.Client.Extensions
2525

2626
jobs:
27-
build-and-test:
27+
publish-nuget:
2828
runs-on: ubuntu-20.04
2929

3030
steps:
@@ -59,6 +59,10 @@ jobs:
5959
run: |
6060
echo "Package Version: ${{ github.event.inputs.package-version }}"
6161
62+
- name: Remove Project Ref & Add latest pack
63+
if: ${{ github.event.inputs.package-id == 'LocalStack.Client.Extensions' }}
64+
run: cd src/LocalStack.Client.Extensions/ && dotnet remove reference ../LocalStack.Client/LocalStack.Client.csproj && dotnet add package LocalStack.Client
65+
6266
- name: Nuget Pack
6367
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 }}
6468

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"profiles": {
3+
"LocalStack.Build": {
4+
"commandName": "Project",
5+
"commandLineArgs": "--target nuget-push --package-version 1.2.3 --package-source myget --package-id LocalStack.Client --package-secret ************************"
6+
},
7+
"WSL 2": {
8+
"commandName": "WSL2",
9+
"commandLineArgs": "--target get-version",
10+
"distributionName": "Ubuntu-18.04"
11+
}
12+
}
13+
}

0 commit comments

Comments
 (0)