-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 1.15 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Build Minecraft Plugin
on:
push:
pull_request:
jobs:
markdown-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Lint Markdown files
uses: DavidAnson/markdownlint-cli2-action@v19
with:
globs: '**/*.md' # Checks all Markdown files in the repository
fix: true # automatically fixes simple problems
config: '.markdownlint.jsonc' # if you have a configuration file
# continue-on-error: true # to prevent the build from crashing due to errors in the documentation
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Set up JDK 16
uses: actions/setup-java@v4
with:
java-version: 16
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Build with Gradle
run: ./gradlew build
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: PermGuard
path: ${{ github.workspace }}/build/libs/