@@ -2,17 +2,16 @@ name: Build, Test, Publish
2
2
on :
3
3
- push
4
4
5
- defaults :
6
- run :
7
- working-directory : src
8
-
9
5
jobs :
10
6
build :
11
7
name : Build and Test
12
8
runs-on : [ self-hosted, macos, dotnet ]
13
9
env :
14
10
DOTNET_NOLOGO : true
15
11
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT : true
12
+ defaults :
13
+ run :
14
+ working-directory : src
16
15
17
16
outputs :
18
17
is-release : ${{ steps.get-version.outputs.is-release }}
@@ -67,30 +66,32 @@ jobs:
67
66
uses : actions/download-artifact@v2
68
67
with :
69
68
name : test-results
69
+ path : ${{runner.temp}}/res
70
70
71
71
- name : Publish Test Results
72
72
uses : enricomi/publish-unit-test-result-action/composite@v1
73
73
if : always()
74
74
with :
75
- files : ' **/test-results.xml'
75
+ files : ${{runner.temp}}/res/ **/test-results.xml
76
76
77
77
publish-nuget :
78
78
name : Publish NuGet
79
79
runs-on : [ self-hosted, macos, dotnet ]
80
80
env :
81
81
DOTNET_NOLOGO : true
82
82
needs : build
83
+
83
84
steps :
84
85
- name : Fetch Package Artifacts
85
86
uses : actions/download-artifact@v2
86
87
with :
87
88
name : packages
88
- path : src
89
+ path : ${{runner.temp}}/packages
89
90
90
91
- name : Publish NuGet Packages
91
92
if : needs.build.outputs.is-release == 'true'
92
- run : dotnet nuget push *.nupkg -s nuget.org -k ${{secrets.NUGET_API_KEY}} --skip-duplicate
93
+ run : dotnet nuget push ${{runner.temp}}/packages/ *.nupkg -s nuget.org -k ${{secrets.NUGET_API_KEY}} --skip-duplicate
93
94
94
95
- name : Publish GitHub Packages
95
96
if : needs.build.outputs.is-release != 'true'
96
- run : dotnet nuget push *.nupkg -s https://${{github.actor}}@nuget.pkg.github.com/${{github.repository_owner}} -k ${{secrets.GITHUB_TOKEN}} --skip-duplicate
97
+ run : dotnet nuget push ${{runner.temp}}/packages/ *.nupkg -s https://${{github.actor}}@nuget.pkg.github.com/${{github.repository_owner}} -k ${{secrets.GITHUB_TOKEN}} --skip-duplicate
0 commit comments