Skip to content

Change way of building #41

Change way of building

Change way of building #41

Workflow file for this run

# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: NookureStaff build
on:
push:
branches: [ release/1.x ]
pull_request:
branches: [ release/1.x]
jobs:
build-on-ubuntu:
# 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: Checkout main branch from GitHub
uses: actions/checkout@v3
# Runs a single command using the runners shell
- name: Seting up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Execute Gradle build
run: |
chmod +x gradlew
./gradlew shadowJar
mkdir staging && cp build/libs/*.jar staging
- name: Upload the jar
uses: actions/upload-artifact@v2
with:
name: NookureStaff
path: staging