Skip to content

Commit

Permalink
Merge pull request #14 from Hutch79/Added-Build-action
Browse files Browse the repository at this point in the history
Create build.yml
  • Loading branch information
Hutch79 authored Mar 11, 2024
2 parents fe7f7ae + e7f215b commit 8e525e7
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8e525e7

Please sign in to comment.