Skip to content

update folia reference to commit 3cf908f61b38d3d3707b774deb2346a0f42b… #21

update folia reference to commit 3cf908f61b38d3d3707b774deb2346a0f42b…

update folia reference to commit 3cf908f61b38d3d3707b774deb2346a0f42b… #21

Workflow file for this run

name: Java CI-CD with Gradle
on:
push:
tags:
- '*'
jobs:
build:
permissions: write-all
runs-on: ubuntu-latest
steps:
- name: "Pull & Checkout"
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: "Set up JDK 21"
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'zulu'
cache: 'gradle'
- name: "Config Git"
run: |
git config --global user.email "actions@github.com"
git config --global user.name "actions"
- name: "Apply Patches"
run: |
chmod +x ./gradlew
./gradlew applyAllPatches
- name: "Build Mojmap"
run: ./gradlew createMojmapPaperclipJar
- name: "Copy jar to staging"
run: mkdir staging && cp DeerFolia-server/build/libs/DeerFolia-paperclip-*-mojmap.jar staging/
- name: "Rename file to DeerFolia-{git tag name}.jar"
run: |
GIT_TAG=$(git describe --tags --abbrev=0)
ls staging
mv staging/*.jar staging/DeerFolia-$GIT_TAG.jar
ls staging
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ steps.build.outputs.GIT_TAG }}"
prerelease: false
files: |
staging/*.jar