readd gitignore #4
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 and Upload Jar | |
on: | |
push: | |
branches: | |
- folia-patches | |
pull_request: | |
branches: | |
- folia-patches | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
- name: Grant execute permission to script | |
run: bash -c "chmod +x script.sh" | |
- name: Update upstream and apply patches | |
shell: bash | |
run: | | |
git config --global user.email "action@github.com" | |
git config --global user.name "Action Github" | |
./script.sh updateUpstream | |
./script.sh applyPatches | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v3 | |
- name: Build | |
shell: bash | |
run: | | |
cd Essentials-Patchs | |
./gradlew build --stacktrace | |
- name: Archive plugin jars on GitHub | |
uses: actions/upload-artifact@v4 | |
with: | |
name: EssentialsX plugin jars | |
path: Essentials-Patchs/jars/ |