forked from shaka-project/shaka-player
-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (35 loc) · 1.11 KB
/
nightly-demo.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Deploy Nightly Demo
on:
workflow_dispatch:
# Allows for manual triggering.
schedule:
# Run every night at midnight PST / 8am UTC.
- cron: '0 8 * * *'
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