From e7f215bb2db81cf6aa26fc28421eca9a5f0f3152 Mon Sep 17 00:00:00 2001 From: Hutch79 <42042811+Hutch79@users.noreply.github.com> Date: Mon, 11 Mar 2024 20:25:03 +0100 Subject: [PATCH] Create build.yml --- .github/workflows/build.yml | 48 +++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..1a9dbbf --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,48 @@ +# This is a basic workflow to help you get started with Actions + +name: Compiling Action + +# Controls when the workflow will run +# on: push +on: pull_request + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - name: Step 1 - Checkout Repository + uses: actions/checkout@v2 + + # Setting up JDK 11 + - name: Step 2 - Setting up JDK 8 + uses: actions/setup-java@v2 + with: + distribution: 'zulu' + java-version: '11' + + # Package Program Using Maven + - name: Step 3 - Package Project using Maven + run: mvn -B package --file pom.xml + + # List everything of the current directory + - name: Step 4 - List the current directory + run: ls -a + + # Target folder completion + - name: Step 4 - List items in target folder + run: | + cd target + ls -a + + # Target folder completion + - name: Step 5 - Copying Files for download + uses: actions/upload-artifact@v2 + with: + name: Published Jar Files + path: target/*.jar