-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (33 loc) · 881 Bytes
/
deploy.yml
File metadata and controls
40 lines (33 loc) · 881 Bytes
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
name: Deploy to Google App Engine
on:
push:
branches:
- master
workflow_dispatch:
jobs:
deploy:
name: Build and deploy
runs-on: ubuntu-latest
environment: production
permissions:
contents: 'read'
id-token: 'write'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Authenticate to Google Cloud
uses: google-github-actions/auth@v3
with:
# This is set from GitHub secrets.
credentials_json: '${{ secrets.GCP_SA_KEY }}'
- id: deploy
name: Deploy to Google App Engine
uses: google-github-actions/deploy-appengine@v3
with:
project_id: go-uber-org
- name: Verify deployment
run: |
import sys, requests
res = requests.get('https://go.uber.org').status_code == 200
sys.exit(0) if res else sys.exit(1)
shell: python