TP-39914 | fix

This commit is contained in:
Aman Chaturvedi
2024-03-12 13:34:44 +05:30
parent 08684a3c0e
commit 48d1c782aa
2 changed files with 17 additions and 29 deletions

View File

@@ -46,25 +46,25 @@ jobs:
echo "Set version to $VERSION"
echo "buildNumber=$BUILD_NUMBER" >> $GITHUB_OUTPUT
echo "Set buildNumber to $BUILD_NUMBER"
# - name: Install yarn
# run: npm install --global yarn
# - name: Install appcenter cli
# run: npm install -g appcenter-cli
# - name: Install dependency
# run: yarn
# - 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: yarn move:qa && appcenter codepush release-react -a nfa-navi.com/nfa-app -d Staging -t "${{github.event.inputs.target_versions}}" --description "${{github.event.inputs.description}}"
# - name: CodePush Prod
# if: ((github.event.inputs.environment == 'Prod' || inputs.environment == 'Prod'))
# run: yarn move:prod && appcenter codepush release-react -a nfa-navi.com/nfa-app -d Production -t "${{github.event.inputs.target_versions}}" --description "${{github.event.inputs.description}}"
- name: Install yarn
run: npm install --global yarn
- name: Install appcenter cli
run: npm install -g appcenter-cli
- name: Install dependency
run: yarn
- 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: yarn move:qa && appcenter codepush release-react -a nfa-navi.com/nfa-app -d Staging -t "${{github.event.inputs.target_versions}}" --description "${{github.event.inputs.description}}"
- name: CodePush Prod
if: ((github.event.inputs.environment == 'Prod' || inputs.environment == 'Prod'))
run: yarn move:prod && appcenter codepush release-react -a nfa-navi.com/nfa-app -d Production -t "${{github.event.inputs.target_versions}}" --description "${{github.event.inputs.description}}"
create_release_tag:
needs: generate
runs-on: [default]
if: success() && (github.event.inputs.environment == 'QA') # Only create tag for Prod releases, have put QA for testing
if: success() && (github.event.inputs.environment == 'Prod') # Only create tag for Prod releases
steps:
- name: Checkout
uses: actions/checkout@v2
@@ -72,18 +72,6 @@ jobs:
token: ${{ secrets.MY_REPO_PAT }}
submodules: recursive
persist-credentials: true
# - name: Create Release
# id: create_release
# uses: actions/create-release@latest
# env:
# GITHUB_TOKEN: ${{ secrets.MY_REPO_PAT }} # This token is provided by Actions, you do not need to create your own token
# with:
# tag_name: ${{ needs.generate.outputs.package_version }}
# release_name: ${{ needs.generate.outputs.package_version }} (build ${{ needs.generate.outputs.build_number }}) code push
# body: ""
# draft: false
# prerelease: false
- name: Check if tag exists
id: check_tag
run: |