Skip to content

Commit

Permalink
deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
JakinRogel committed Apr 7, 2024
1 parent f3966b4 commit 7ec1bcb
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy to Google App Engine
name: Deploy to Google Cloud

on:
push:
Expand All @@ -8,23 +8,23 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Java JDK
- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: 11

- name: Install Maven
run: sudo apt-get install -y maven
java-version: '11'

- name: Authenticate with Google Cloud
run: gcloud auth activate-service-account --key-file="$HOME/gcp-key.json"
run: echo '${{ secrets.GCP_SA_KEY }}' > "$HOME/gcp-key.json"

- name: Get into project
run: cd milestone-1
- name: Activate service account credentials
run: gcloud auth activate-service-account --key-file="$HOME/gcp-key.json"

- name: Build and deploy with Maven
run: mvn clean package appengine:deploy
- name: Change directory and deploy
run: |
cd milestone-1
mvn clean package appengine:deploy

0 comments on commit 7ec1bcb

Please sign in to comment.