Skip to content

Merge pull request #174 from salmanfarisvp/master #4

Merge pull request #174 from salmanfarisvp/master

Merge pull request #174 from salmanfarisvp/master #4

---
name: Deploy tfl bus status app (QC)
on:
push:
branches:
- 'master'
paths:
- 'edge-apps/tfl-bus-status/**'
- '.github/workflows/deploy-tfl-bus-status-qc.yml'
jobs:
deploy:
runs-on: ubuntu-latest
env:
APP_ID: '01J013T9F09HS3TSPWF226ND18'
INSTALLATION_ID: '01J019M0F9QP20SRGH8H8SJHE4'
APP_PATH: 'edge-apps/tfl-bus-status'
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Deploy Edge App
uses: screenly/cli@master
with:
screenly_api_token: ${{ secrets.SCREENLY_API_TOKEN_AUTOMATED_QC }}
# yamllint disable-line rule:line-length
cli_commands: edge-app upload --app-id=${{ env.APP_ID }} --path=${{ env.APP_PATH }}
- name: List Versions
uses: screenly/cli@master
with:
screenly_api_token: ${{ secrets.SCREENLY_API_TOKEN_AUTOMATED_QC }}
# yamllint disable-line rule:line-length
cli_commands: edge-app version list --app-id=${{ env.APP_ID }}
- name: Promote Edge App
uses: screenly/cli@master
with:
screenly_api_token: ${{ secrets.SCREENLY_API_TOKEN_AUTOMATED_QC }}
# yamllint disable-line rule:line-length
cli_commands: edge-app version promote --latest --installation-id=${{ env.INSTALLATION_ID }} --path=${{ env.APP_PATH }}