mirror of
https://github.com/FalsePattern/FalsePatternLib.git
synced 2026-11-13 00:47:45 +00:00
36 lines
695 B
YAML
36 lines
695 B
YAML
name: Build Nightly
|
|
|
|
on:
|
|
push:
|
|
branches: [ master, main ]
|
|
|
|
jobs:
|
|
build-and-test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Set up JDK 21
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
java-version: '21'
|
|
distribution: 'adopt'
|
|
cache: gradle
|
|
|
|
- name: Grant execute permission for gradlew
|
|
run: chmod +x gradlew
|
|
|
|
- name: Setup the workspace
|
|
run: ./gradlew setupCIWorkspace
|
|
|
|
- name: Build the mod
|
|
run: ./gradlew build
|
|
|
|
- name: Release Nightly
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: nightly
|
|
path: build/libs/*.jar
|