Files
PlazmaBukkitMC/.github/workflows/pull_requests.yml
Workflow config file is invalid. Please check your config file: yaml: line 9: did not find expected key
AlphaKR93 cb5affb551 Release
2023-03-23 12:35:34 +09:00

56 lines
1.5 KiB
YAML

name: Test Pull Request
on:
pull_request:
branches: [ "ver/*", "feat/*", "dev/*", "expr/*" ]
workflow_dispatch:
jobs:
release:
strategy:
matrix:
jdk: [19.0.2+7]
java: ['temurin']
os: [ubuntu-22.04]
if: !startsWith(github.event.commits[0].message, '[CI-Skip]')
runs-on: ${{ matrix.os }}
steps:
- name: Checkout action
uses: actions/checkout@v3
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Set up JDK ${{ matrix.java }} ${{ matrix.jdk }}
uses: actions/setup-java@v3
with:
distribution: ${{ matrix.java }}
java-version: ${{ matrix.jdk }}
cache: 'gradle'
- name: Configure Git
run: |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" && git config --global user.name "github-actions[bot]"
- name: Apply Patches
run: ./gradlew applyPatches --stacktrace
- name: Build
run: ./gradlew build --stacktrace
- name: Create Reobf Jar
run: ./gradlew createReobfPaperclipJar --stacktrace
- name: Create Mojmap Jar
run: ./gradlew createMojmapPaperclipJar --stacktrace
- name: Upload Artifacts
if: contains(github.event.pull_request.labels.*.name, 'upload_artifact')
uses: actions/upload-artifact@v3
with:
name: Artifacts
path: |
build/libs
Plazma-API/build/docs/javadoc