Skip to content

Commit

Permalink
Create gradle-pr.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
HSGamer authored Jul 9, 2024
1 parent 51e74ed commit e3376ee
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/gradle-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build & Upload

on:
pull_request:
branches: [ "master" ]

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
- name: Build with Gradle Wrapper
run: ./gradlew build
- name: Upload Artifact
uses: actions/upload-artifact@v4.3.1
with:
path: build/libs/*.jar

0 comments on commit e3376ee

Please sign in to comment.