From 95a0cfac8960527bfa91c89132de94486d2c380c Mon Sep 17 00:00:00 2001 From: andreas-ost <76487171+andreas-ost@users.noreply.github.com> Date: Tue, 22 Dec 2020 17:00:58 +0100 Subject: [PATCH] 2nd workflow --- .github/workflows/maven2.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/maven2.yml diff --git a/.github/workflows/maven2.yml b/.github/workflows/maven2.yml new file mode 100644 index 000000000..5447a95dd --- /dev/null +++ b/.github/workflows/maven2.yml @@ -0,0 +1,30 @@ +# This workflow will build a Java project with Maven +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven + +name: Java CI with Maven + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Build with Maven + run: mvn -B package --file pom.xml + - name: Deploy to heroku + uses: akhileshns/heroku-deploy@v3.6.8 + with: + heroku_api_key: ${{secrets.HEROKU_API_KEY}} + heroku_app_name: ${{secrets.HEROKU_APP_NAME}} + heroku_email: ${{secrets.HEROKU_EMAIL}}