Deploy Live Update #76
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: Deploy Live Update | |
on: | |
workflow_dispatch | |
jobs: | |
staging-live-update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy live update to staging | |
uses: ionic-team/appflow-build@v1 | |
with: | |
token: ${{ secrets.APPFLOW_TOKEN }} | |
app-id: 32316914 | |
platform: Web | |
environment: staging | |
destinations: Staging | |
- name: Get branch name | |
id: get-branch | |
uses: xom9ikk/split@v1 | |
with: | |
string: ${{ github.ref }} | |
separator: refs/heads/ | |
- name: Send Message to Slack | |
uses: archive/[email protected] | |
id: notify | |
with: | |
slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_USER_OAUTH_ACCESS_TOKEN }} | |
slack-channel: C017C400V37 | |
slack-text: Live update deployed for branch `${{ steps.get-branch.outputs._1 }}` on Staging. | |
prod-live-update: | |
runs-on: ubuntu-latest | |
environment: Production | |
needs: staging-live-update | |
steps: | |
- name: Deploy live update to production | |
uses: ionic-team/appflow-build@v1 | |
with: | |
token: ${{ secrets.APPFLOW_TOKEN }} | |
app-id: 32316914 | |
platform: Web | |
environment: production | |
destinations: Production | |
- name: Get branch name | |
id: get-branch | |
uses: xom9ikk/split@v1 | |
with: | |
string: ${{ github.ref }} | |
separator: refs/heads/ | |
- name: Send Message to Slack | |
uses: archive/[email protected] | |
id: notify | |
with: | |
slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_USER_OAUTH_ACCESS_TOKEN }} | |
slack-channel: C017C400V37 | |
slack-text: Live update deployed for branch `${{ steps.get-branch.outputs._1 }}` on Production. | |