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
on:
push:
branches:
- 'master'
paths:
- 'edge-apps/tfl-bus-status/**'
- '.github/workflows/deploy-tfl-bus-status.yml'
jobs:
deploy:
runs-on: ubuntu-latest
env:
APP_ID: '01J014HW843KTC13XKXV3ABD04'
INSTALLATION_ID: '01J014HWSD8VFYPDPFPA219EV4'
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_PRODUCTION }}
# 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_PRODUCTION }}
# 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_PRODUCTION }}
# yamllint disable-line rule:line-length
cli_commands: edge-app version promote --latest --installation-id=${{ env.INSTALLATION_ID }} --path=${{ env.APP_PATH }}