build(deps): bump github.com/arran4/golang-ical from 0.2.8 to 0.3.0 #74
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go | |
on: | |
push: | |
branches: [ master ] | |
paths: | |
- '**.go' | |
- 'go.mod' | |
- 'app.yaml' | |
pull_request: | |
branches: [ master ] | |
paths: | |
- '**.go' | |
- 'go.mod' | |
- 'app.yaml' | |
workflow_dispatch: | |
jobs: | |
build: # Build and test the Go application | |
runs-on: ubuntu-latest | |
permissions: | |
contents: 'read' | |
id-token: 'write' | |
steps: | |
- uses: actions/checkout@v4 | |
- 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 ./... | |
deploy: # Deploy to Google Cloud App Engine | |
# Only deploy on pushes to master branch (not PRs) | |
if: github.ref == 'refs/heads/master' | |
# Only deploy if the build job was successful | |
needs: build | |
runs-on: ubuntu-latest | |
permissions: | |
contents: 'read' | |
id-token: 'write' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Remove all unnecessary files | |
run: rm -rf .git .txt .md .yml .gitignore .github .idea .vscode resources/ *_test.go .png | |
- 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' |