Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravis96 committed Jun 2, 2024
2 parents 3eeea60 + 9927ad4 commit 93e6673
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build and Release

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java:
- 17
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@v4.1.6

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

- name: Cache Gradle
uses: actions/cache@v4.0.2
with:
path: ~/.gradle/caches
key: >-
${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*',
'**/gradle-wrapper.properties') }}
restore-keys: '${{ runner.os }}-gradle-'

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

- name: Build with Gradle
run: ./gradlew clean shadowJar

- name: Upload JAR file
uses: actions/upload-artifact@v4.3.3
with:
name: jar-file
path: build/libs/*.jar

0 comments on commit 93e6673

Please sign in to comment.