mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-14 06:11:32 +01:00
30 lines
929 B
YAML
30 lines
929 B
YAML
name: Building JAR
|
|
on: [push]
|
|
jobs:
|
|
gradle:
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- id: commit
|
|
uses: pr-mpt/actions-commit-hash@v2
|
|
- name: Get branch name
|
|
id: branch-name
|
|
uses: tj-actions/branch-names@v6
|
|
- uses: actions/setup-java@v3
|
|
with:
|
|
distribution: temurin
|
|
java-version: 8
|
|
|
|
- name: Setup Gradle
|
|
uses: gradle/gradle-build-action@v2
|
|
|
|
- name: Execute Gradle build
|
|
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 }}
|