Skip to content

Update deploy.yml

Update deploy.yml #43

Workflow file for this run

name: Deploy to Google Cloud
on:
push:
branches: [ main ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
ref: main
- name: Set up JDK 11
uses: actions/setup-java@v2
with:

Check failure on line 18 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / Deploy to Google Cloud

Invalid workflow file

The workflow is not valid. .github/workflows/deploy.yml (Line: 18, Col: 12): Unexpected value '' .github/workflows/deploy.yml (Line: 19, Col: 7): Unexpected value 'java-version'
java-version: '11'
distribution: 'adopt'
- name: Build the Spring Boot Application
run: mvn -B package --file pom.xml
working-directory: ${{ github.workspace }}/your-spring-boot-app-directory
- name: Deploy to Google Cloud App Engine
uses: google-github-actions/deploy-appengine@v0.2.0
with:
credentials: ${{ secrets.GCP_SA_KEY }}
project_id: ${{ secrets.GCP_PROJECT }}
deliverables: ${{ github.workspace }}/your-spring-boot-app-directory/target/your-spring-boot-app.jar