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