This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Minecraft Plugin | |
on: | |
push: | |
pull_request: | |
jobs: | |
lint-markdown: | |
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/ |