Skip to content

Commit

Permalink
fix: enable manual release trigger (#70) (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
junjie-w authored Dec 29, 2024
1 parent d3af0bb commit cc84de0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ on:
inputs:
api-name:
type: choice
description: 🧳 Select an API to generate and publish client SDK package
description: 🧳 Select an API to release and publish client SDK package
options:
- products-api
- users-api
required: true
api-version:
description: Package Version
required: true
default: '1.0.0'
default: 1.0.0

env:
SWAGGERHUB_API_KEY: ${{ secrets.SWAGGERHUB_API_KEY }}
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/release-base.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
name: Create Release

on:
workflow_call:
workflow_dispatch:
inputs:
package-name:
required: true
type: string
version:
description: Package name
required: true
version:
type: string
type:
description: Package version
required: true
type:
type: string
description: Package type (api or sdk)
required: false
enum: [api, sdk]

jobs:
Expand Down Expand Up @@ -43,7 +46,7 @@ jobs:
After SDK generation, the NPM package will be available at:
📦 [@api-client-sdk-streamline-sample/${API_BASE}-client](https://www.npmjs.com/package/@api-client-sdk-streamline-sample/${API_BASE}-client)"
else
elif [[ "${{ inputs.type }}" == "sdk" ]]; then
NOTES="## ${{ inputs.package-name }} v${{ inputs.version }}
📦 NPM Package: [${{ inputs.package-name }}](https://www.npmjs.com/package/${{ inputs.package-name }})
Expand Down

0 comments on commit cc84de0

Please sign in to comment.