File tree Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ on: [push]
55jobs :
66 build :
77
8- runs-on : ubuntu -latest
8+ runs-on : windows -latest
99
1010 steps :
1111 - uses : actions/checkout@v1
1515 dotnet-version : 2.2.108
1616 repo-token : ${{ secrets.GITHUB_TOKEN }}
1717 - name : Setup nuget config
18- run : sed 's/GITHUB_TOKEN/${{ secrets.GITHUB_TOKEN }}/g' nuget.config > nuget.config
19- - name : Build with dotnet
20- run : dotnet build --configuration Release
21- - name : Push NuGet packages - Nightly Builds
22- run : dotnet pack --configuration Release && dotnet nuget push "bin/Release/querybuilder.1.0.0.nupkg" --source "github"
18+ run : sed -i 's/GITHUB_TOKEN/${{ secrets.GITHUB_TOKEN }}/' nuget.config
19+
20+ - name : Restore QueryBuilder
21+ run : dotnet restore QueryBuilder/QueryBuilder.csproj --source "https://api.nuget.org/v3/index.json"
22+
23+ - name : Build QueryBuilder
24+ run : dotnet build QueryBuilder/QueryBuilder.csproj --configuration Release --no-restore
25+
26+ - name : Nightly Builds - Create Packages
27+ run : dotnet pack QueryBuilder/QueryBuilder.csproj --configuration Release
28+
29+ - name : Nightly Builds - Push Packages
30+ run : dotnet nuget push "QueryBuilder/bin/Release/*.nupkg" --source "github"
Original file line number Diff line number Diff line change 33 <packageSources >
44 <clear />
55 <add key =" nuget" value =" https://api.nuget.org/v3/index.json" />
6- <add key =" github" value =" https://nuget.pkg.github.com/ahmad-moussawi /index.json" />
6+ <add key =" github" value =" https://nuget.pkg.github.com/sqlkata /index.json" />
77 </packageSources >
88 <packageSourceCredentials >
99 <github >
You can’t perform that action at this time.
0 commit comments