31 lines
617 B
YAML
31 lines
617 B
YAML
name: Build and Upload JAR
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: [ubuntu-latest]
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up JDK 11
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: '8'
|
|
|
|
- name: Build with Gradle
|
|
run: chmod +x gradlew && ./gradlew clean build
|
|
|
|
- name: Upload JAR artifact
|
|
uses: christopherhx/gitea-upload-artifact@v4
|
|
with:
|
|
name: mineclass
|
|
path: build/libs/*.jar |