Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vlambo3 committed May 2, 2024
1 parent 4046ffd commit 8e1220e
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8e1220e

Please sign in to comment.