PrettyPipes/.github/workflows/main.yml

29 lines
766 B
YAML
Raw Normal View History

2024-02-02 21:26:33 +01:00
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
2024-11-22 13:23:29 +01:00
- name: Clone Repository
2024-02-02 21:26:33 +01:00
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
2024-11-22 13:23:29 +01:00
java-version: '21'
2024-02-02 21:26:33 +01:00
distribution: 'temurin'
- name: Cache
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
2024-11-22 13:23:29 +01:00
key: ${{ hashFiles('**/build.gradle', '**/gradle-wrapper.properties', '**/gradle.properties') }}
2024-02-02 21:26:33 +01:00
- name: Build
run: |
chmod +x ./gradlew
./gradlew build --no-daemon
- name: Upload
uses: actions/upload-artifact@v4
with:
name: Mod Jar
2024-11-22 13:23:29 +01:00
path: build/libs/**.jar