File tree Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change 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
33on :
4+ # watch:
5+ # types: [started]
46 push :
57 branches :
68 - master
79jobs :
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
You can’t perform that action at this time.
0 commit comments