Skip to content

Commit 3f55fa3

Browse files
committed
Add a workflow to deploy the server to Google App Engine
1 parent 34dc8a3 commit 3f55fa3

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Deploy Server to Google App Engine
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- 'server/**'
9+
- '.github/workflows/deploy-server.yml'
10+
workflow_dispatch:
11+
12+
jobs:
13+
deploy:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
- name: Authenticate to Google Cloud
21+
uses: google-github-actions/auth@v2
22+
with:
23+
project_id: ${{ secrets.GOOGLE_CLOUD_PROJECT_ID }}
24+
credentials_json: ${{ secrets.GOOGLE_CLOUD_CREDENTIALS }}
25+
26+
- name: Deploy to App Engine
27+
uses: google-github-actions/deploy-appengine@v2
28+
with:
29+
project_id: ${{ secrets.GOOGLE_CLOUD_PROJECT_ID }}
30+
working_directory: ./server

0 commit comments

Comments
 (0)