From 8e1220eb03fc217d69d8660de7ab9fc92178a3b1 Mon Sep 17 00:00:00 2001 From: Vanina Godoy <86501009+vlambo3@users.noreply.github.com> Date: Thu, 2 May 2024 17:00:19 -0300 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 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 0000000..a0600ea --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,36 @@ +name: Build JAR File + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up JDK 21 + uses: actions/setup-java@v2 + with: + java-version: '21' + + - name: Build with Maven + run: mvn package + + - name: Install Tree + run: + sudo apt install tree + + - name: Tree + run: + tree -h + + - name: Upload JAR artifact + uses: actions/upload-artifact@v2 + with: + name: taskmanagerapp + path: build/libs/my-app.jar