Skip to content

Commit

Permalink
[chore] Improve release process (#536)
Browse files Browse the repository at this point in the history
- Add step to release to add NuGet package to new release
  • Loading branch information
nwithan8 committed Dec 6, 2023
1 parent beabf18 commit d36b7dd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,16 @@ 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

- 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 }}

2 changes: 1 addition & 1 deletion EasyPost.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>EasyPost-Official</id>
<title>EasyPost (Official)</title>
<version>6.0.0.3</version>
<version>6.0.0.4</version>
<authors>EasyPost</authors>
<owners>EasyPost</owners>
<projectUrl>https://www.easypost.com</projectUrl>
Expand Down
6 changes: 3 additions & 3 deletions EasyPost/Properties/VersionInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d36b7dd

Please sign in to comment.