Skip to content

Commit 52a0103

Browse files
committed
Added github nuget publish step
1 parent acacde1 commit 52a0103

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@ jobs:
1919
run: dotnet build --configuration Release /p:Version=${VERSION}
2020
- name: Test
2121
run: dotnet test --configuration Release /p:Version=${VERSION} --no-build
22-
- name: Publish FroniusSolarClient
22+
- name: Pack
23+
run: dotnet pack --configuration Release /p:Version=${VERSION} --no-build --output .
24+
- name: Push
25+
run: dotnet nuget push FroniusSolarClient.Core.${VERSION}.nupkg --source https://nuget.pkg.github.com/acraven/index.json --api-key ${GITHUB_TOKEN}
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
- name: Publish FroniusSolarClient nuget
2329
uses: brandedoutcast/publish-nuget@v2.5.2
2430
with:
2531
PROJECT_FILE_PATH: FroniusSolarClient/FroniusSolarClient.csproj

0 commit comments

Comments
 (0)