Skip to content

Commit b1a25da

Browse files
--amend
1 parent b020a2e commit b1a25da

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/dotnetcore.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,7 @@ jobs:
1616
repo-token: ${{ secrets.GITHUB_TOKEN }}
1717
- name: Build with dotnet
1818
run: dotnet build --configuration Release
19+
- name: Setup nuget config
20+
run: sed 's/GITHUB_TOKEN/${{ secrets.GITHUB_TOKEN }}/g' nuget.config > nuget.config
1921
- name: Push NuGet packages - Nightly Builds
2022
run: dotnet pack --configuration Release && dotnet nuget push "bin/Release/querybuilder.1.0.0.nupkg" --source "github"

nuget.config

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
<configuration>
33
<packageSources>
44
<clear />
5+
<add key="nuget" value="https://api.nuget.org/v3/index.json" />
56
<add key="github" value="https://nuget.pkg.github.com/ahmad-moussawi/index.json" />
67
</packageSources>
8+
<packageSourceCredentials>
9+
<github>
10+
<add key="Username" value="ahmad-moussawi" />
11+
<add key="ClearTextPassword" value="GITHUB_TOKEN" />
12+
</github>
13+
</packageSourceCredentials>
714
</configuration>

0 commit comments

Comments
 (0)