Skip to content

Commit

Permalink
Add ability to manually publish a beta version
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewBenzSW committed Jul 16, 2024
1 parent 73e9718 commit 78b6c05
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@

name: CI

on: [push]
on:
push:
workflow_dispatch:

jobs:
dot_net_framework_test:
Expand Down Expand Up @@ -95,10 +97,16 @@ jobs:
nuget-deploy:
runs-on: ubuntu-latest
needs: [dot_net_framework_test, dot_net_core_test]
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch'
steps:
# Checkout code if release was created
- uses: actions/checkout@v2

- uses: bbonkr/get-version-action@v1
id: get_version
with:
project: './ShipEngineSDK/ShipEngineSDK.csproj'
show_log_message: true

# Setup Dotnet if release was created
- name: Setup dotnet 8.0.x
Expand All @@ -109,6 +117,7 @@ jobs:
- name: publish on version change
id: publish_nuget
uses: alirezanet/[email protected]
if: github.ref == 'refs/heads/main' || (github.event_name == 'workflow_dispatch' && steps.get_version.outputs.pre-release != '')

with:
# Filepath of the project to be packaged, relative to root of repository
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,7 @@ Updated nuget package dependencies
### Added

- Created new SDK methods for the entire API that sit next to the pre-existing methods. The pre-existing methods will be deprecated eventually.

## 3.0.0-beta.1

- Created new SDK methods for the entire API that sit next to the pre-existing methods. The pre-existing methods will be deprecated eventually.
2 changes: 1 addition & 1 deletion ShipEngineSDK/ShipEngineSDK.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<PackageId>ShipEngine</PackageId>
<PackageTags>sdk;rest;api;shipping;rates;label;tracking;cost;address;validation;normalization;fedex;ups;usps;</PackageTags>

<Version>2.1.0</Version>
<Version>3.0.0-beta.1</Version>
<Authors>ShipEngine</Authors>
<Company>ShipEngine</Company>
<Summary>The official ShipEngine C# SDK for .NET</Summary>
Expand Down
2 changes: 1 addition & 1 deletion openapitools.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"packageName": "ShipEngineSDK",
"ignoreFileOverride": "./.openapi-generator-ignore",
"additionalProperties": {
"packageVersion": "2.1.0",
"packageVersion": "3.0.0-beta.1",
"targetFramework": "netstandard2.0",
"validatable": false,
"sourceFolder": "",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "shipengine-dotnet",
"version": "1.0.0",
"version": "3.0.0-beta.1",
"description": "Package primarily used to generate the API and models from OpenApi spec\"",
"main": "index.js",
"directories": {
Expand Down

0 comments on commit 78b6c05

Please sign in to comment.