File tree Expand file tree Collapse file tree 2 files changed +29
-13
lines changed
Expand file tree Collapse file tree 2 files changed +29
-13
lines changed Original file line number Diff line number Diff line change 1+ name : Build and upload jar
2+
3+ on : [ push, pull_request ]
4+
5+ jobs :
6+ build :
7+ # Only run on PRs if the source branch is on someone else's repo
8+ if : " ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}"
9+
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
14+ - name : Set up JDK 21
15+ uses : actions/setup-java@v5
16+ with :
17+ java-version : 21
18+ distribution : ' temurin'
19+ - name : Setup Gradle
20+ uses : gradle/actions/setup-gradle@v5
21+ - name : Build with Gradle
22+ run : ./gradlew build
23+ - name : Upload a Build Artifact
24+ uses : actions/upload-artifact@v5.0.0
25+ with :
26+ # Artifact name
27+ name : MiniCommands
28+ # A file, directory or wildcard pattern that describes what to upload
29+ path : build/libs/*.jar
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments