Skip to content

Commit 116fe71

Browse files
authored
Merge pull request #230 from octokit/fixes/229-cut-a-new-release
Upload a new release to nuget.org
2 parents 36ebb1c + fc9fb2a commit 116fe71

File tree

4 files changed

+27
-7
lines changed

4 files changed

+27
-7
lines changed

.github/workflows/dotnetcore.yml

Lines changed: 14 additions & 3 deletions
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:
@@ -36,9 +37,19 @@ jobs:
3637
- name: Run Octokit.GraphQL.Core.Generation.UnitTests
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

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
4148

4249
- name: Publish to GitHub Packages
4350
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 }}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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>

Octokit.GraphQL.nuspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<package >
33
<metadata>
44
<id>Octokit.GraphQL</id>
5-
<version>0.1.5-beta</version>
5+
<version>0.1.6-beta</version>
66
<authors>GitHub</authors>
77
<owners>GitHub</owners>
88
<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>
1111
<iconUrl>https://f.cloud.github.com/assets/19977/1441274/160fba8c-41a9-11e3-831d-61d88fa886f4.png</iconUrl>
1212
<requireLicenseAcceptance>false</requireLicenseAcceptance>
1313
<description>An async-based GitHub GraphQL client library for .NET</description>

directory.build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<Version>0.1.5</Version>
3+
<Version>0.1.6</Version>
44
<VersionSuffix>beta</VersionSuffix>
55
</PropertyGroup>
66
</Project>

0 commit comments

Comments
 (0)