43 lines
1.3 KiB
YAML
43 lines
1.3 KiB
YAML
name: CodePush React Deployment
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
environment:
|
|
description: Choose build environment
|
|
required: true
|
|
type: choice
|
|
options:
|
|
- QA
|
|
target_versions:
|
|
description: please enter target versions
|
|
required: true
|
|
type: string
|
|
default: '5.6.1'
|
|
description:
|
|
description: Enter please add change log
|
|
required: true
|
|
type: string
|
|
default: 'bug fixes and minor ui enhancements'
|
|
jobs:
|
|
build:
|
|
runs-on: [ default ]
|
|
defaults:
|
|
run:
|
|
working-directory: .
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 18.18.0
|
|
- name: Install appcenter cli
|
|
run: npm install -g appcenter-cli
|
|
- name: Install Node Modules
|
|
run: npm install
|
|
- name: AppCenter login
|
|
run: appcenter login --token ${{ secrets.APP_CENTER_LOGIN_TOKEN }}
|
|
- name: CodePush QA
|
|
if: ((github.event.inputs.environment == 'QA' || inputs.environment == 'QA'))
|
|
run: appcenter codepush release-react -a navi-rn_super_app/NaviApp -d Staging -t "${{inputs.target_versions}}" --description "${{inputs.description}}" |