Skip to content

Commit a30bb49

Browse files
--amend
1 parent 2f1d5ea commit a30bb49

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

.github/workflows/dotnetcore.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on: [push]
55
jobs:
66
build:
77

8-
runs-on: ubuntu-latest
8+
runs-on: windows-latest
99

1010
steps:
1111
- uses: actions/checkout@v1
@@ -15,8 +15,16 @@ jobs:
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"

nuget.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
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>

0 commit comments

Comments
 (0)