-
Notifications
You must be signed in to change notification settings - Fork 1.3k
39 lines (33 loc) · 1.05 KB
/
appspot.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
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: 22
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