Skip to content

Commit

Permalink
try option #2 from ilker's suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
TYoungSL committed Jul 20, 2021
1 parent b3b6272 commit 26768c1
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 11 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,15 @@ jobs:
- uses: actions/[email protected]
with:
dotnet-version: 5.0.x
source-url: https://nuget.pkg.github.com/StirlingLabs/index.json
env:
NUGET_AUTH_TOKEN: ${{ github.token }}
- name: NuGet Auth
run: |
dotnet nuget add source https://nuget.pkg.github.com/${{github.repository_owner}}/index.json \
-n GitHub-${{github.repository_owner}} \
-u ${{github.actor}} \
-p ${{github.token}} \
--store-password-in-clear-text
- name: Restore
run: dotnet restore StirlingLabs.Utilities.Net.sln -c Release
- name: Build
run: dotnet build StirlingLabs.Utilities.Net.sln -c Release
- name: Test
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/ci-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,17 @@ jobs:
- uses: actions/[email protected]
with:
dotnet-version: 5.0.x
source-url: https://nuget.pkg.github.com/StirlingLabs/index.json
env:
NUGET_AUTH_TOKEN: ${{ github.token }}
- name: NuGet Auth
run: |
dotnet nuget add source https://nuget.pkg.github.com/${{github.repository_owner}}/index.json \
-n GitHub-${{github.repository_owner}} \
-u ${{github.actor}} \
-p ${{github.token}} \
--store-password-in-clear-text
- name: Restore
run: dotnet restore StirlingLabs.Utilities.Net.sln -c Release
- name: Build
run: dotnet build StirlingLabs.Utilities.Net.sln -c Release
env:
NUGET_AUTH_TOKEN: ${{ github.token }}
- name: Test
run: dotnet test StirlingLabs.Utilities.Net.sln --no-build -c Release --logger GitHubActions
- name: Artifacts
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/ci-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,15 @@ jobs:
- uses: actions/[email protected]
with:
dotnet-version: 5.0.x
source-url: https://nuget.pkg.github.com/StirlingLabs/index.json
env:
NUGET_AUTH_TOKEN: ${{ github.token }}
- name: NuGet Auth
run: |
dotnet nuget add source https://nuget.pkg.github.com/${{github.repository_owner}}/index.json \
-n GitHub-${{github.repository_owner}} \
-u ${{github.actor}} \
-p ${{github.token}} \
--store-password-in-clear-text
- name: Restore
run: dotnet restore StirlingLabs.Utilities.Net.sln -c Release
- name: Build
run: dotnet build StirlingLabs.Utilities.Net.sln -c Release
- name: Test
Expand Down

0 comments on commit 26768c1

Please sign in to comment.