File tree Expand file tree Collapse file tree 4 files changed +27
-7
lines changed Expand file tree Collapse file tree 4 files changed +27
-7
lines changed Original file line number Diff line number Diff line change 8
8
9
9
env :
10
10
config : Release
11
+ PackageOutputPath : nupkg
11
12
12
13
jobs :
13
14
build-test-publish :
36
37
- name : Run Octokit.GraphQL.Core.Generation.UnitTests
37
38
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
38
39
39
- - name : Create NuGet package
40
- run : nuget pack
40
+ - name : Create package using .nuspec
41
+ run : dotnet pack Octokit.GraphQL.Pack/Octokit.GraphQL.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
41
48
42
49
- name : Publish to GitHub Packages
43
50
if : github.ref == 'refs/heads/master'
44
- run : dotnet nuget push *.nupkg
51
+ run : dotnet nuget push ${{ env.PackageOutputPath }}/*.nupkg
52
+
53
+ - name : Publish to nuget.org
54
+ if : github.ref == 'refs/heads/master'
55
+ run : dotnet nuget push ${{ env.PackageOutputPath }}/*.nupkg --source nuget.org -k ${{ secrets.NUGET_TOKEN }}
Original file line number Diff line number Diff line change
1
+ <Project Sdk =" Microsoft.NET.Sdk" >
2
+ <PropertyGroup >
3
+ <TargetFramework >netstandard1.1</TargetFramework >
4
+ <NoBuild >true</NoBuild >
5
+ <IncludeBuildOutput >false</IncludeBuildOutput >
6
+ <NuspecFile >../Octokit.GraphQL.nuspec</NuspecFile >
7
+ <NuspecBasePath >..</NuspecBasePath >
8
+ </PropertyGroup >
9
+ </Project >
Original file line number Diff line number Diff line change 2
2
<package >
3
3
<metadata >
4
4
<id >Octokit.GraphQL</id >
5
- <version >0.1.5 -beta</version >
5
+ <version >0.1.6 -beta</version >
6
6
<authors >GitHub</authors >
7
7
<owners >GitHub</owners >
8
8
<repository type =" git" url =" https://github.com/octokit/octokit.graphql.net" />
9
- <licenseUrl >https://github.com/grokys /octokit.graphql/blob/master /LICENSE.txt </licenseUrl >
10
- <projectUrl >https://github.com/grokys /octokit.graphql</projectUrl >
9
+ <licenseUrl >https://github.com/octokit /octokit.graphql.net /blob/HEAD /LICENSE.md </licenseUrl >
10
+ <projectUrl >https://github.com/octokit /octokit.graphql.net </projectUrl >
11
11
<iconUrl >https://f.cloud.github.com/assets/19977/1441274/160fba8c-41a9-11e3-831d-61d88fa886f4.png</iconUrl >
12
12
<requireLicenseAcceptance >false</requireLicenseAcceptance >
13
13
<description >An async-based GitHub GraphQL client library for .NET</description >
Original file line number Diff line number Diff line change 1
1
<Project >
2
2
<PropertyGroup >
3
- <Version >0.1.5 </Version >
3
+ <Version >0.1.6 </Version >
4
4
<VersionSuffix >beta</VersionSuffix >
5
5
</PropertyGroup >
6
6
</Project >
You can’t perform that action at this time.
0 commit comments