Skip to content

Commit 7108e29

Browse files
committed
Fix CI build failing due to unauthenticated package registry
1 parent a4e5a68 commit 7108e29

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ jobs:
1818
name: CatCore.Shared
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v3
2222
- name: Setup dotnet
23-
uses: actions/setup-dotnet@v1
23+
uses: actions/setup-dotnet@v3
2424
with:
25-
dotnet-version: 6.0.x
25+
dotnet-version: 7.0.x
2626
- name: Build CatCore.Shared
2727
id: Build
2828
run: dotnet build CatCore.Shared --configuration Release
@@ -31,11 +31,13 @@ jobs:
3131
runs-on: ubuntu-latest
3232
needs: catcore-shared
3333
steps:
34-
- uses: actions/checkout@v2
34+
- uses: actions/checkout@v3
3535
- name: Setup dotnet
36-
uses: actions/setup-dotnet@v1
36+
uses: actions/setup-dotnet@v3
3737
with:
38-
dotnet-version: 6.0.x
38+
dotnet-version: 7.0.x
39+
- name: Authenticate with GitHub Package Registry
40+
run: dotnet nuget update source "ErisApps GH Packages" --username ${{ github.repository_owner }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text
3941
- name: Removed .example suffix from Constants implementation
4042
run: find ~ -type f -name Constants.user.cs.example -execdir mv Constants.user.cs.example Constants.user.cs \;
4143
- name: Find and Replace - Insert CatCore Auth Server URI
@@ -60,11 +62,11 @@ jobs:
6062
runs-on: ubuntu-latest
6163
needs: catcore-shared
6264
steps:
63-
- uses: actions/checkout@v2
65+
- uses: actions/checkout@v3
6466
- name: Setup dotnet
65-
uses: actions/setup-dotnet@v1
67+
uses: actions/setup-dotnet@v3
6668
with:
67-
dotnet-version: 6.0.x
69+
dotnet-version: 7.0.x
6870
- name: Build CatCore.Azure
6971
id: Build
7072
run: dotnet build CatCore.Azure --configuration Release

NuGet.Config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<configuration>
2+
<packageSources>
3+
<add key="ErisApps GH Packages" value="https://nuget.pkg.github.com/ErisApps/index.json" />
4+
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
5+
</packageSources>
6+
</configuration>

0 commit comments

Comments
 (0)