Deploy Nightly Demo #1124
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 Nightly Demo | |
on: | |
workflow_dispatch: | |
# Allows for manual triggering. | |
schedule: | |
# Run every night at midnight PST / 8am UTC. | |
- cron: '0 8 * * *' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
appspot: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 16 | |
registry-url: 'https://registry.npmjs.org' | |
# The nightly demo has its own receiver app ID that points to the nightly | |
# demo itself for the receiver side. | |
- name: Override Cast Receiver App ID | |
run: | | |
sed \ | |
-i demo/index.html \ | |
-e 's/\(data-shaka-player-cast-receiver-id\)="[^"]*"/\1="07AEE832"/' | |
- uses: ./.github/workflows/custom-actions/prep-for-appspot | |
- uses: google-github-actions/auth@v2 | |
with: | |
credentials_json: '${{ secrets.APPENGINE_DEPLOY_KEY }}' | |
- uses: google-github-actions/deploy-appengine@v2 | |
with: | |
project_id: shaka-player-demo | |
version: nightly | |
promote: false |