Skip to content

feat: removed device ID request header requirement #49

feat: removed device ID request header requirement

feat: removed device ID request header requirement #49

Workflow file for this run

# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Java CI with Maven
on:
push:
branches: [ "main" ]
# pull_request:
# branches: [ "main" ]
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v3
- name: Create prod properties file
env:
GOOGLE : ${{secrets.GOOGLE_CLIENT_ID}}
MONGO_USER: ${{secrets.MONGO_USER}}
MONGO_PASSWORD: ${{secrets.MONGO_PASSWORD}}
run: echo "google.client.id=${{env.GOOGLE}}\nspring.data.mongodb.uri=mongodb+srv://${{env.MONGO_USER}}:${{env.MONGO_PASSWORD}}@serverlessinstance0.dqvk9rt.mongodb.net/dev?retryWrites=true&w=majority&appName=ServerlessInstance0" > src/main/resources/application-prod.properties
- name: Authenticate GCP
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.GCLOUD_SERVICE_KEY }}
- name: Deploy to GAE Cloud build
uses: 'google-github-actions/deploy-appengine@v2'
with:
deliverables: ./pom.xml