Arclight/.github/workflows/gradle.yml

46 lines
1.2 KiB
YAML
Raw Normal View History

2020-05-17 09:26:09 +00:00
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
2024-03-02 03:48:35 +00:00
name: Build
2020-05-17 09:26:09 +00:00
on:
push:
2020-08-17 12:49:18 +00:00
branches:
- '**'
2020-05-17 09:26:09 +00:00
jobs:
build:
2024-08-07 02:25:32 +00:00
runs-on: TPPC-ubuntu-latest
2020-05-17 09:26:09 +00:00
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
2020-05-17 09:26:09 +00:00
uses: actions/setup-java@v1
with:
java-version: '17'
2020-05-17 10:23:39 +00:00
- name: Cache Gradle User Files
2020-05-17 10:29:16 +00:00
uses: actions/cache@v1
with:
path: ~/.gradle
key: ${{ runner.os }}-gradle-user-home
2020-05-17 10:23:39 +00:00
- name: Cache Gradle Files
2020-05-17 10:29:16 +00:00
uses: actions/cache@v1
with:
path: ./.gradle
key: ${{ runner.os }}-gradle-file
2020-05-17 09:26:09 +00:00
- name: Grant execute permission for gradlew
run: chmod +x gradlew
2020-05-25 04:33:39 +00:00
- name: Build
2024-03-02 03:48:35 +00:00
env:
ARCLIGHT_FILES_TOKEN: ${{ secrets.ARCLIGHT_FILES_TOKEN }}
run: |
2024-08-06 17:14:23 +00:00
./gradlew cleanBuild remapSpigotJar idea --no-daemon -i --stacktrace --refresh-dependencies --continue
2024-08-06 18:30:45 +00:00
./gradlew build collect --no-daemon -i --stacktrace --continue
2020-05-17 09:26:09 +00:00
- name: Upload Artifact
2024-08-07 04:20:25 +00:00
uses: actions/upload-artifact@v4
2020-05-17 09:26:09 +00:00
with:
name: Arclight
path: ./build/libs/*.jar
2020-05-17 09:26:09 +00:00