Commit 28bd86b 1 parent c3be4a9 commit 28bd86b Copy full SHA for 28bd86b
File tree 1 file changed +42
-0
lines changed
1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build and Deploy
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+
8
+ jobs :
9
+ build-and-deploy :
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - name : Checkout code
14
+ uses : actions/checkout@v2
15
+
16
+ - name : Set up Go
17
+ uses : actions/setup-go@v3
18
+ with :
19
+ go-version : " 1.22"
20
+
21
+ - name : Build the Go project
22
+ working-directory : tools/sitegen
23
+ run : go build -o sitegen
24
+
25
+ - name : Run sitegen
26
+ working-directory : tools/sitegen
27
+ run : ./sitegen
28
+
29
+ - name : Auth with Google Cloud
30
+ uses : google-github-actions/auth@v2
31
+ with :
32
+ credentials_json : ${{ secrets.GCP_CREDENTIALS }}
33
+
34
+ - name : " Set up Cloud SDK"
35
+ uses : " google-github-actions/setup-gcloud@v2"
36
+ with :
37
+ version : " >= 363.0.0"
38
+
39
+ - name : Deploy to Google App Engine
40
+ run : |
41
+ VERSION=$(date +%Y%m%d%H%M%S)
42
+ gcloud app deploy --project xbarapp --version $VERSION --quiet
You can’t perform that action at this time.
0 commit comments