SLC-1.8.9/.github/workflows/build.yml

34 lines
1.1 KiB
YAML
Raw Normal View History

2023-06-28 16:58:52 +02:00
name: Building JAR
on: [push]
2023-06-28 16:58:23 +02:00
jobs:
gradle:
strategy:
matrix:
2023-06-28 17:00:11 +02:00
os: [ubuntu-latest]
2023-06-28 16:58:23 +02:00
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
2023-06-28 19:06:07 +02:00
- id: commit
uses: pr-mpt/actions-commit-hash@v2
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v6
2023-06-28 16:58:23 +02:00
- uses: actions/setup-java@v3
with:
distribution: temurin
2023-06-28 17:00:11 +02:00
java-version: 8
2023-06-28 16:58:23 +02:00
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Execute Gradle build
2023-06-28 19:06:07 +02:00
run: ./gradlew setupDecompWorkspace clean build --refresh-dependencies
2023-07-07 16:58:37 +02:00
- name: Obfuscating Jar
working-directory: ./autobuilder
run: java -jar obfuscator.jar --jarIn ../build/libs/client-1.8.9.jar --jarOut ./jars/Client.jar --scriptFile obfuscationScript.js --config config
- name: Building Jar with Libraries
2023-06-28 19:06:07 +02:00
working-directory: ./autobuilder
run: npm install && LOGIN=${{ secrets.LOGIN }} PASSWORD=${{ secrets.PASSWORD }} node index --version 1.8.9 --branch ${{ steps.branch-name.outputs.current_branch }} --commit ${{ steps.commit.outputs.short }}