mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-16 16:16:40 +03:00
4a15d06c57
I missed some before. I only updated actions from GitHub "actions/..." This updates all other actions except google-github-actions/release-please, which has some breaking changes we would need to absorb and test.
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
name: Deploy Demo Version Index
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
# Allows for manual triggering.
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- .github/workflows/demo-version-index.yaml
|
|
- app-engine/demo-version-index/**
|
|
release:
|
|
types: [published]
|
|
# NOTE: So long as releases are made without a personal access token (PAT),
|
|
# they will not activate this workflow's release trigger. For now, the
|
|
# schedule trigger will compensate for that by updating the index nightly.
|
|
schedule:
|
|
# Run every night at 10pm PST / 6am UTC.
|
|
- cron: '0 6 * * *'
|
|
|
|
jobs:
|
|
appspot:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
# We need a list of all tags for this, so fetch the entire history.
|
|
fetch-depth: 0
|
|
|
|
- uses: google-github-actions/auth@v2
|
|
with:
|
|
credentials_json: '${{ secrets.APPENGINE_DEPLOY_KEY }}'
|
|
|
|
- name: Generate static content
|
|
run: python3 app-engine/demo-version-index/generate.py
|
|
|
|
- uses: google-github-actions/deploy-appengine@v2
|
|
with:
|
|
project_id: shaka-player-demo
|
|
version: index
|
|
working_directory: app-engine/demo-version-index/
|
|
promote: false
|
|
|