From d36b7dd9652d8c357c9babeb62188798f9d12ef0 Mon Sep 17 00:00:00 2001 From: Nate Harris Date: Wed, 6 Dec 2023 16:06:14 -0700 Subject: [PATCH] [chore] Improve release process (#536) - Add step to release to add NuGet package to new release --- .github/workflows/release.yml | 7 +++++-- EasyPost.nuspec | 2 +- EasyPost/Properties/VersionInfo.cs | 6 +++--- Makefile | 2 +- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c58e05ac..f00f914c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -61,7 +61,6 @@ jobs: shell: cmd - name: Build and Sign NuGet package - # TODO: Need to keep signing_cert.snk in the repo run: | call scripts\win\build_release_nuget.bat EasyPost EasyPostNETStrongNameSigning.snk "${{ secrets.SM_CODE_SIGNING_CERT_SHA1_HASH }}" Release shell: cmd @@ -69,5 +68,9 @@ jobs: - name: Publish to NuGet run: make publish key=${{ secrets.NUGET_API_KEY }} - # TODO: Upload artifact to previous release + - name: Upload NuGet package to release + uses: AButler/upload-release-assets@v3.0 + with: + files: "*.nupkg" + repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/EasyPost.nuspec b/EasyPost.nuspec index d25b26f2..bf86fb22 100644 --- a/EasyPost.nuspec +++ b/EasyPost.nuspec @@ -3,7 +3,7 @@ EasyPost-Official EasyPost (Official) - 6.0.0.3 + 6.0.0.4 EasyPost EasyPost https://www.easypost.com diff --git a/EasyPost/Properties/VersionInfo.cs b/EasyPost/Properties/VersionInfo.cs index 618024f9..d46a968e 100644 --- a/EasyPost/Properties/VersionInfo.cs +++ b/EasyPost/Properties/VersionInfo.cs @@ -2,6 +2,6 @@ // Version information for an assembly must follow semantic versioning // When releasing a release candidate, append a 4th digit being the number of the release candidate -[assembly: AssemblyVersion("6.0.0.3")] -[assembly: AssemblyFileVersion("6.0.0.3")] -[assembly: AssemblyInformationalVersion("6.0.0.3")] +[assembly: AssemblyVersion("6.0.0.4")] +[assembly: AssemblyFileVersion("6.0.0.4")] +[assembly: AssemblyInformationalVersion("6.0.0.4")] diff --git a/Makefile b/Makefile index ac326ad6..e7dde3eb 100644 --- a/Makefile +++ b/Makefile @@ -76,7 +76,7 @@ publish: ## release - Cuts a release for the project on GitHub (requires GitHub CLI) # tag = The associated tag title of the release release: - gh release create ${tag} *.nupkg + gh release create ${tag} ## restore - Restore the project restore: