Skip to content

Commit

Permalink
Testing out auto build when pushing an update
Browse files Browse the repository at this point in the history
  • Loading branch information
xEcho1337 authored Oct 15, 2024
1 parent 934c027 commit 588e154
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '17'

- name: Grant execute permission for gradlew
run: chmod +x ./gradlew

- name: Build with Gradle (ShadowJar)
run: ./gradlew shadowJar

- name: Archive build artifacts
uses: actions/upload-artifact@v3
with:
name: build-artifacts
path: build/libs/*.jar

0 comments on commit 588e154

Please sign in to comment.