File tree Expand file tree Collapse file tree 3 files changed +18
-9
lines changed
Expand file tree Collapse file tree 3 files changed +18
-9
lines changed Original file line number Diff line number Diff line change 1- name : Main Workflow
1+ name : Main
22
33on : [push]
44
55jobs :
66 main :
7+
78 runs-on : windows-latest
9+
810 steps :
911 - name : Checkout
1012 uses : actions/checkout@v1
13+
1114 - name : Setup .NET Core
1215 uses : actions/setup-dotnet@v1
1316 with :
1417 dotnet-version : 2.2.108
18+
1519 - name : Build
1620 run : dotnet build ./src/SharpDeck.sln --configuration Release
1721 env :
1822 DOTNET_SKIP_FIRST_TIME_EXPERIENCE : true
23+
1924 - name : Test
2025 run : dotnet test ./src/SharpDeck.Tests/ --configuration Release --no-build
2126 env :
Original file line number Diff line number Diff line change 1- name : Tag Workflow
1+ name : Release
22
3- on : [push ]
3+ on : [release ]
44
55jobs :
6- tag :
6+ release :
77
88 runs-on : windows-latest
99
2121 with :
2222 dotnet-version : 2.2.108
2323
24- - name : npm publish
25- run : npm run publish
24+ - name : Pack
25+ run : npm run nuget:pack
2626 env :
2727 DOTNET_SKIP_FIRST_TIME_EXPERIENCE : true
28- MOCK_VERSION : ${{ secrets.MOCK_VERSION }}
28+
29+ - name : Push to NuGet
30+ run : npm run nuget:push
31+ env :
32+ NUGET_API_KEY : ${{ secrets.NUGET_API_KEY }}
Original file line number Diff line number Diff line change 77 "doc" : " docs"
88 },
99 "scripts" : {
10- "publish" : " npm run dotnet :pack && ls ./dist " ,
11- "dotnet :pack" : " dotnet pack %npm_package_main% -c Release /p:Version=%MOCK_VERSION % /p:AssemblyVersion=%MOCK_VERSION % /p:AssemblyFileVersion=%MOCK_VERSION %" ,
10+ "nuget: publish" : " npm run nuget :pack && npm run nuget:push " ,
11+ "nuget :pack" : " dotnet pack %npm_package_main% -c Release /p:Version=%npm_package_version % /p:AssemblyVersion=%npm_package_version % /p:AssemblyFileVersion=%npm_package_version %" ,
1212 "nuget:push" : " ./build/nuget push \" ./dist/SharpDeck.%npm_package_version%.nupkg\" %NUGET_API_KEY% -Source https://api.nuget.org/v3/index.json"
1313 },
1414 "repository" : {
You can’t perform that action at this time.
0 commit comments