Create stable release #31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create stable release | |
on: | |
workflow_dispatch: | |
inputs: | |
ticket: | |
description: Release ticket id for the GitHub commit (i.e. MOEN-1234) | |
type: string | |
required: true | |
sdk-version: | |
description: The SDK dependency version to update to, in the package.json | |
type: string | |
required: false | |
default: '' | |
jobs: | |
release: | |
name: Create release | |
runs-on: macos-15 | |
steps: | |
- name: Checkout scripts | |
uses: actions/checkout@v4 | |
with: | |
path: scripts | |
repository: moengage/sdk-automation-scripts | |
token: ${{ secrets.SDK_BOT_ACCESS_TOKEN }} | |
fetch-depth: 0 | |
fetch-tags: true | |
- name: Setup dev environment | |
uses: ./scripts/actions/ios-action-setup | |
env: | |
SDK_BOT_ACCESS_TOKEN: ${{ secrets.SDK_BOT_ACCESS_TOKEN }} | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
path: source | |
token: ${{ secrets.SDK_BOT_ACCESS_TOKEN }} | |
fetch-depth: 0 | |
fetch-tags: true | |
- name: Create release | |
uses: ./scripts/actions/ios-sdk-client-release | |
with: | |
dir: source | |
env: | |
GITHUB_TOKEN: ${{ secrets.SDK_BOT_ACCESS_TOKEN }} | |
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} | |
MO_RELEASE_TICKET: ${{ inputs.ticket }} | |
MO_SDK_DEPENDENCY_VERSION: ${{ inputs.sdk-version }} |