Deploy to Appspot (one-off) #2
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 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 |