Skip to content

fix: app.yaml

fix: app.yaml #55

Workflow file for this run

name: Go
on:
push:
branches: [ master ]
paths:
- '**.go'
- 'go.mod'
- 'app.yaml'
pull_request:
branches: [ master ]
paths:
- '**.go'
- 'go.mod'
- 'app.yaml'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: 'read'
id-token: 'write'
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.22
- name: Dependencies
run: go mod tidy
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
- name: Auth to Google Cloud
uses: 'google-github-actions/auth@v2'
with:
project_id: 'liquipedia-calendar'
workload_identity_provider: ${{ secrets.GCLOUD_WORKLOAD_IDENTITY_FEDERATION }}
service_account: ${{ secrets.GCLOUD_SERVICE_ACCOUNT_DEPLOY }}
- name: Deploy to Google Cloud App Engine
uses: 'google-github-actions/deploy-appengine@v2'
with:
project_id: 'liquipedia-calendar'
service_account: ${{ secrets.GCLOUD_SERVICE_ACCOUNT_DEPLOY }}
deploy_flags: '--exclude=".git,.txt,.md,.yml,.gitignore,.github,.idea,.vscode"'