Skip to content

Commit c0f73e6

Browse files
ci: add build
1 parent 0b5631f commit c0f73e6

File tree

2 files changed

+29
-13
lines changed

2 files changed

+29
-13
lines changed

.github/workflows/build.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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

.github/workflows/gradle-wrapper-validation.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)