diff --git a/.github/workflows/deploy-transportation-app-qc.yml b/.github/workflows/deploy-transportation-app-qc.yml new file mode 100644 index 00000000..e46d6deb --- /dev/null +++ b/.github/workflows/deploy-transportation-app-qc.yml @@ -0,0 +1,43 @@ +--- +name: Deploy transportation app (QC) + +on: + push: + branches: + - 'master' + paths: + - 'edge-apps/transportation/**' + - '.github/workflows/deploy-transportation-qc.yml' + +jobs: + deploy: + runs-on: ubuntu-latest + env: + APP_ID: '01J16GZP85W98XGW641Q7XC7ZT' + INSTALLATION_ID: '01J16GZPMC2FCATQGP1HWZ14K0' + APP_PATH: 'edge-apps/transportation' + + 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 }} \ No newline at end of file diff --git a/.github/workflows/deploy-transportation-app.yml b/.github/workflows/deploy-transportation-app.yml new file mode 100644 index 00000000..bc1a2cef --- /dev/null +++ b/.github/workflows/deploy-transportation-app.yml @@ -0,0 +1,43 @@ +--- +name: Deploy transportation app + +on: + push: + branches: + - 'master' + paths: + - 'edge-apps/transportation/**' + - '.github/workflows/transportation.yml' + +jobs: + deploy: + runs-on: ubuntu-latest + env: + APP_ID: '01J16GZP85W98XGW641Q7XC7ZT' + INSTALLATION_ID: '01J16GZPMC2FCATQGP1HWZ14K0' + APP_PATH: 'edge-apps/transportation' + + 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 }} \ No newline at end of file diff --git a/edge-apps/transportation/screenly.yml b/edge-apps/transportation/screenly.yml index 7fa4f93c..02e079b2 100644 --- a/edge-apps/transportation/screenly.yml +++ b/edge-apps/transportation/screenly.yml @@ -1,6 +1,6 @@ --- -app_id: 01J16GZP85W98XGW641Q7XC7ZT -installation_id: 01J16GZPMC2FCATQGP1HWZ14K0 +app_id: +installation_id: entrypoint: index.html description: Displays AC Bus Status. icon: https://playground.srly.io/edge-apps/tfl-bus-status/static/images/icon.svg