Merge pull request #174 from salmanfarisvp/master #4
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 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 }} |