-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (50 loc) · 1.34 KB
/
deploy.yml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
---
name: Build and Deploy to GAE
on:
push:
branches: ["main"]
jobs:
setup-build-publish-deploy:
name: Setup, Build, Publish, and Deploy
runs-on: ubuntu-latest
environment: production
permissions:
contents: read
id-token: write
checks: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
lfs: true
- name: Checkout LFS
run: git lfs checkout
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install npm
run: npm ci
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: "./go.mod"
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.62.2
- name: "build"
run: "timeout 120 .appengine/build.sh"
- name: "prep"
run: |
rm main.go
mv .appengine/main.go .appengine/app.yaml .appengine/dispatch.yaml ./
- name: "auth"
uses: "google-github-actions/auth@v2"
with:
credentials_json: "${{ secrets.GOOGLE_CREDENTIALS }}"
- name: "deploy"
uses: "google-github-actions/deploy-appengine@v2"
with:
project_id: "justindfuller"
deliverables: "app.yaml dispatch.yaml"