NaturesAura/.github/workflows/main.yml

28 lines
741 B
YAML
Raw Permalink Normal View History

2024-02-02 21:19:18 +01:00
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
2024-02-02 21:24:06 +01:00
uses: actions/upload-artifact@v4
2024-02-02 21:19:18 +01:00
with:
2024-02-02 21:24:57 +01:00
name: Mod Jar
2024-02-02 21:19:18 +01:00
path: build/libs/**.jar