Skip to content

Commit acb7101

Browse files
committed
Added workflow
1 parent 3c1bfa5 commit acb7101

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/build.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Build PexNPC
2+
on: [ push, pull_request ]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/[email protected]
8+
- name: Set up JDK 21
9+
uses: actions/[email protected]
10+
with:
11+
java-version: 21.0.5
12+
distribution: 'temurin'
13+
- name: Configure Git
14+
run: |
15+
git config --global user.email "[email protected]"
16+
git config --global user.name "Github Actions"
17+
- name: Grant execute permission for gradlew
18+
run: chmod +x gradlew
19+
- name: Build
20+
run: ./gradlew build
21+
- name: Upload Jar
22+
uses: actions/[email protected]
23+
with:
24+
name: PexNPC
25+
path: build/libs/PexNPC-2.0.jar

0 commit comments

Comments
 (0)