File tree 5 files changed +13
-11
lines changed
5 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: build
3
3
on :
4
4
push :
5
5
branches :
6
- - master
6
+ - main
7
7
8
8
# Environment variables available to all jobs and steps in this workflow
9
9
env :
@@ -18,23 +18,25 @@ jobs:
18
18
- name : Checkout
19
19
uses : actions/checkout@v1
20
20
21
- # Setup gcloud CLI
22
- - uses : GoogleCloudPlatform/github-actions/setup-gcloud@master
21
+ - name : gcloud auth
22
+ id : ' auth'
23
+ uses : ' google-github-actions/auth@v2'
23
24
with :
24
- version : ' 275.0.0'
25
- service_account_email : ${{ secrets.GCP_SA_EMAIL }}
26
- service_account_key : ${{ secrets.GCP_SA_KEY }}
25
+ credentials_json : ' ${{ secrets.GCP_SA_KEY }}'
26
+
27
+ - name : gcloud setup
28
+ uses : google-github-actions/setup-gcloud@v2
27
29
28
30
- name : Install yq
29
31
run : sudo snap install yq
30
32
31
33
- name : Set COMMIT
32
34
run : |
33
- yq write --inplace . /app.yaml env_variables.COMMIT ${GITHUB_SHA:0:7}
35
+ COMMIT=${GITHUB_SHA:0:7} yq -i '.env_variables.COMMIT = strenv(COMMIT)' . /app.yaml
34
36
35
37
- name : Set LASTMODIFIED
36
38
run : |
37
- yq write --inplace ./app.yaml env_variables. LASTMOD " $(date -u +%Y-%m-%dT%H:%M:%SZ)"
39
+ LASTMOD= $(date -u +%Y-%m-%dT%H:%M:%SZ) yq -i '.env_variables.LASTMOD = strenv(LASTMOD)' ./app.yaml
38
40
39
41
- name : Deploy to AppEngine
40
42
run : |
Original file line number Diff line number Diff line change 1
- runtime : go113
1
+ runtime : go122
2
2
handlers :
3
3
- url : /favicon.ico
4
4
static_files : favicon.ico
Original file line number Diff line number Diff line change 1
1
module github.com/regexplanet/regexplanet-go
2
2
3
- go 1.13
3
+ go 1.22
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- /usr/local/google_appengine-go/dev_appserver.py --port=8081 .
3
+ go run src/regexplanet.go
You can’t perform that action at this time.
0 commit comments