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
|
|
|
|
|
|
|
|
- name: Install and Build Final Jar
|
|
|
|
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 }}
|