Skip to content

Commit f5cb27d

Browse files
authored
Upload nupkg artifact
1 parent 7d7505e commit f5cb27d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/dotnetcore.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88

99
env:
1010
config: Release
11+
PackageOutputPath: nupkg
1112

1213
jobs:
1314
build-test-publish:
@@ -37,7 +38,13 @@ jobs:
3738
run: dotnet test -c ${{ env.config }} --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[Octokit.GraphQL]Octokit.GraphQL.*" .\Octokit.GraphQL.Core.Generation.UnitTests\Octokit.GraphQL.Core.Generation.UnitTests.csproj
3839

3940
- name: Create package using .nuspec
40-
run: dotnet pack pack.csproj --output .
41+
run: dotnet pack pack.csproj --output ${{ env.PackageOutputPath }}
42+
43+
- name: Upload nupkg artifact
44+
uses: actions/upload-artifact@v2
45+
with:
46+
name: nupkg
47+
path: ${{ env.PackageOutputPath }}/*.nupkg
4148

4249
- name: Publish to GitHub Packages
4350
if: github.ref == 'refs/heads/master'

0 commit comments

Comments
 (0)