mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-25 17:45:03 +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.
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
name: Deploy to Appspot (one-off)
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
# Allows for manual triggering, to correct deployment issues.
|
|
inputs:
|
|
ref:
|
|
description: "A tag name or SHA1 to deploy."
|
|
required: true
|
|
subdomain:
|
|
description: "An appspot subdomain to deploy to. Be careful! Do not overwrite an existing subdomain!"
|
|
required: true
|
|
|
|
jobs:
|
|
appspot:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ inputs.ref }}
|
|
fetch-depth: 0
|
|
persist-credentials: false
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 16
|
|
registry-url: 'https://registry.npmjs.org'
|
|
|
|
- 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: ${{ inputs.subdomain }}
|
|
promote: false
|