Skip to content

Commit 47ea04b

Browse files
Fixed CI.
1 parent dafc35a commit 47ea04b

File tree

2 files changed

+17
-14
lines changed

2 files changed

+17
-14
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,23 @@ jobs:
2626
dotnet-version: '9.0.304'
2727

2828
- name: Prepare NuGet.config (GitHub Packages + nuget.org)
29-
run: dotnet nuget list source --configfile ./nuget.config
29+
run: |
30+
cat > ./nuget.config <<'EOF'
31+
<?xml version="1.0" encoding="utf-8"?>
32+
<configuration>
33+
<packageSources>
34+
<add key="github" value="https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" />
35+
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
36+
</packageSources>
37+
<packageSourceCredentials>
38+
<github>
39+
<add key="Username" value="${{ github.actor }}" />
40+
<add key="ClearTextPassword" value="${{ secrets.GITHUB_TOKEN }}" />
41+
</github>
42+
</packageSourceCredentials>
43+
</configuration>
44+
EOF
45+
dotnet nuget list source --configfile ./nuget.config
3046
3147
- name: Set VERSION suffix for CI
3248
run: echo "VERSION_SUFFIX=-ci-$(date +'%Y%m%d%H%M%S').${{ github.run_number }}" >> $GITHUB_ENV

nuget.config

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)