Merge pull request #7 from 4lysson-a/dev #5
Workflow file for this run
This file contains 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: Back4app deploy | |
on: | |
push: | |
tags: | |
- 'v**' | |
- '!v**-alpha' | |
- '!v**-beta' | |
- '!v**-rc' | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Access backend folder | |
run: cd backend | |
- name: Install dependencies | |
run: curl https://github.com/raw/back4app/parse-cli/back4app/installer.sh | sudo /bin/bash | |
- name: Auth with your back4app account | |
run: echo ${{ secrets.BACK4APP_ACCOUNT_KEY }} | b4a configure accountkey | |
- name: Update applicationId in parse.local | |
run: | | |
# Read applicationId of github secret | |
applicationId=${{ secrets.APPLICATION_ID }} | |
# Update the file parse.local with new applicationId | |
jq --arg applicationId "$applicationId" '.applications.visualizaai.applicationId = $applicationId' .parse.local > .parse.local.tmp && mv .parse.local.tmp .parse.local | |
- name: Deploy your app | |
run: b4a deploy ${{ secrets.BACK4APP_APP_NAME }} |