From 5adea8e7129b16de334722cf44eeb8ee24e8212c Mon Sep 17 00:00:00 2001 From: Breno Andrade <59066707+brenoepics@users.noreply.github.com> Date: Wed, 7 Dec 2022 08:56:28 -0300 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..a483a5bd --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,30 @@ +# 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: + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --file pom.xml + - run: mkdir staging && cp target/*-jar-with-dependencies.jar staging + - uses: actions/upload-artifact@v1 + with: + name: Emulator + path: staging + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}