From d39e966b20b548277118887b0dad0060e07fefe7 Mon Sep 17 00:00:00 2001 From: raphaeltang <56447607+raphaeltang@users.noreply.github.com> Date: Thu, 23 Dec 2021 12:32:14 +0000 Subject: [PATCH 1/2] init commit --- .github/workflows/maven.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/maven.yml diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 0000000..dd7bd27 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,26 @@ +# 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://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 11 + uses: actions/setup-java@v2 + with: + java-version: '11' + distribution: 'adopt' + cache: maven + - name: Build with Maven + run: mvn -B verify --file pom.xml From 2b80c23f7f04380a943baee0da6009d51a939244 Mon Sep 17 00:00:00 2001 From: raphaeltang <56447607+raphaeltang@users.noreply.github.com> Date: Thu, 23 Dec 2021 12:39:48 +0000 Subject: [PATCH 2/2] Update maven.yml --- .github/workflows/maven.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index dd7bd27..5996bc8 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -24,3 +24,8 @@ jobs: cache: maven - name: Build with Maven run: mvn -B verify --file pom.xml + - uses: akhileshns/heroku-deploy@v3.12.12 + with: + heroku_api_key: ${{secrets.HEROKU_API_KEY}} + heroku_app_name: "my-1st-app-00" + heroku_email: "tangyulv@gmail.com"