Skip to content

feat: add support for 1.20.5 (#369) #290

feat: add support for 1.20.5 (#369)

feat: add support for 1.20.5 (#369) #290

Workflow file for this run

name: Build
on:
push:
branches:
- '**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set BUILD_VERSION
run: echo "BUILD_VERSION=$(git describe --tags $(git rev-list --tags --max-count=1))-b$GITHUB_RUN_NUMBER" >> $GITHUB_ENV
- name: Maven cache
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ secrets.CACHE_VERSION }}-${{ hashFiles('./.github/workflows/buildtools.sh') }}
restore-keys: |
${{ runner.os }}-maven-${{ secrets.CACHE_VERSION }}-
- name: Set up JDK 8/17/21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: |
8
17
21
- name: Run BuildTools
run: |
bash ./.github/workflows/buildtools.sh
- name: Build
run: |
mvn clean package --batch-mode -Drevision=$BUILD_VERSION
mv orebfuscator-plugin/target/orebfuscator-*.jar ./
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: orebfuscator-plugin
path: ./orebfuscator-*.jar