Skip to content

Commit 074a324

Browse files
committed
Updating GitHub action not to fail
1 parent 0c3693d commit 074a324

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

.github/workflows/dotnetcore.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: .NET Core
22

3-
on: [push]
3+
on: [push, pull_request]
44

55
jobs:
66
build:

.github/workflows/githubPackages.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,6 @@ jobs:
3131
run: nuget sources add -name "GPR" -Source https://nuget.pkg.github.com/Code-Sharp/index.json -Username Code-Sharp -Password ${{ secrets.GITHUB_TOKEN }}
3232

3333
- name: Push generated package to GitHub registry
34-
run: nuget push .\out\*.nupkg -Source "GPR" -SkipDuplicate
34+
run: |
35+
cd src\netstandard\
36+
nuget push .\out\*.nupkg -Source "GPR" -SkipDuplicate

.github/workflows/nugetGallery.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,14 @@ jobs:
2525
run: nuget sources add -Name "NuGet Gallery" -Source https://api.nuget.org/v3/index.json
2626

2727
- name: Push generated package to NuGet gallery
28-
run: nuget push .\out\*.nupkg -Source "NuGet Gallery" -SkipDuplicate -k ${{ secrets.NUGET_TOKEN }}
28+
run: |
29+
cd src\netstandard
30+
nuget push .\out\*.nupkg -Source "NuGet Gallery" -SkipDuplicate -k ${{ secrets.NUGET_TOKEN }}
2931
3032
- name: Add private GitHub registry to NuGet
3133
run: nuget sources add -name "GPR" -Source https://nuget.pkg.github.com/Code-Sharp/index.json -Username Code-Sharp -Password ${{ secrets.GITHUB_TOKEN }}
3234

3335
- name: Push generated package to GitHub registry
34-
run: nuget push .\out\*.nupkg -Source "GPR" -SkipDuplicate
36+
run: |
37+
cd src\netstandard
38+
nuget push .\out\*.nupkg -Source "GPR" -SkipDuplicate

0 commit comments

Comments
 (0)