mirror of
https://github.com/Ellpeck/PrettyPipes.git
synced 2024-11-24 12:38:35 +01:00
28 lines
741 B
YAML
28 lines
741 B
YAML
|
on: [push, pull_request]
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- name: Clone repository
|
||
|
uses: actions/checkout@v4
|
||
|
- name: Setup Java
|
||
|
uses: actions/setup-java@v4
|
||
|
with:
|
||
|
java-version: '17'
|
||
|
distribution: 'temurin'
|
||
|
- name: Cache
|
||
|
uses: actions/cache@v4
|
||
|
with:
|
||
|
path: |
|
||
|
~/.gradle/caches
|
||
|
~/.gradle/wrapper
|
||
|
key: ${{ hashFiles('**/build.gradle', '**/gradle-wrapper.properties') }}
|
||
|
- name: Build
|
||
|
run: |
|
||
|
chmod +x ./gradlew
|
||
|
./gradlew build --no-daemon
|
||
|
- name: Upload
|
||
|
uses: actions/upload-artifact@v4
|
||
|
with:
|
||
|
name: Mod Jar
|
||
|
path: build/libs/**.jar
|