Skip to content

Commit 8213f6b

Browse files
Testing publishing nuget package
1 parent 68e736d commit 8213f6b

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

.github/workflows/dotnetcore.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,28 @@
11
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions
2-
name: Build-Pack-Publish
2+
name: Star_Build-Pack-Publish
33
on:
4+
# watch:
5+
# types: [started]
46
push:
57
branches:
68
- master
79
jobs:
810
build:
911
runs-on: ubuntu-latest
12+
##if: github.event == 'watch' && github.actor == github.event.repository.owner.login #only me
1013
steps:
1114
- uses: actions/checkout@v2
1215
- name: Setup .NET Core
1316
uses: actions/setup-dotnet@v1
1417
with:
1518
dotnet-version: 2.2.108
16-
- name: Build with dotnet
19+
- name: Build and Pack
1720
run: dotnet build --configuration Release
21+
- run: echo github.event {github.event}
22+
- name: Nuget publish
23+
shell: pwsh
24+
run: nuget.exe push -SkipDuplicate -NonInteractive -Source https://api.nuget.org/v3/index.json -ApiKey ${{NugetApiKey}} /home/runner/work/OsmApiClient/OsmApiClient/src/bin/Release/OsmApiClient.0.0.1-beta.4.nupkg
1825
- uses: actions/upload-artifact@v1
1926
with:
2027
name: OsmApiClient.0.0.1-beta.4.nupkg
2128
path: /home/runner/work/OsmApiClient/OsmApiClient/src/bin/Release/OsmApiClient.0.0.1-beta.4.nupkg
22-
# - name: Nuget publish
23-
# run: nuget.exe push -Source {NuGet package source URL} -ApiKey key HelloWorld\HelloWorld.nupkg
24-
# pack:
25-
# runs-on: ubuntu-latest
26-
# needs: build
27-
# steps:
28-
# - name: Package
29-
# shell: pwsh
30-
# #https://docs.microsoft.com/en-us/nuget/reference/cli-reference/cli-ref-push
31-
# run: echo ${{ secrets.password }}
32-
# #nuget.exe push -Source {NuGet package source URL} -ApiKey key HelloWorld\HelloWorld.nupkg

0 commit comments

Comments
 (0)