Update GitHub (Gitea) workflow
Some checks failed
Java CI with Gradle / build (push) Failing after 15s

This commit is contained in:
Adam 2025-04-23 19:32:43 +01:00
parent 62bccc2452
commit 83d42630d8
3 changed files with 40 additions and 35 deletions

View File

@ -0,0 +1,39 @@
name: Java CI with Gradle
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: archlinux-latest
permissions:
contents: read
steps:
- name: Install prerequisite packages
run: pacman -Syu --noconfirm && pacman -S --noconfirm git
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Build with Gradle Wrapper
run: ./gradlew build
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: JARs
path: build/libs

View File

@ -1,34 +0,0 @@
name: Java CI with Gradle
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: archlinux-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Build with Gradle Wrapper
run: ./gradlew build
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: JARs
path: build/libs

View File

@ -1,6 +1,6 @@
## HotbarReplace ## HotbarReplace
[![Java CI with Gradle](https://git.2khz.xyz/adam/HotbarReplace/actions/workflows/gradle.yml/badge.svg)](https://github.com/twokilohertz/HotbarReplace/actions/workflows/gradle.yml) [![Java CI with Gradle](https://git.2khz.xyz/adam/HotbarReplace/actions/workflows/gradle.yml/badge.svg)](https://git.2khz.xyz/adam/HotbarReplace/actions/workflows/gradle.yml)
HotbarReplace is a Minecraft mod for the Fabric modding framework which replaces blocks in your hotbar with blocks of the same type from your inventory upon running out while placing, see demo GIF below to see how it works! HotbarReplace is a Minecraft mod for the Fabric modding framework which replaces blocks in your hotbar with blocks of the same type from your inventory upon running out while placing, see demo GIF below to see how it works!