From 83d42630d884fcf6101d9b3eaf3277d38ff51713 Mon Sep 17 00:00:00 2001 From: Adam Macdonald Date: Wed, 23 Apr 2025 19:32:43 +0100 Subject: [PATCH] Update GitHub (Gitea) workflow --- .gitea/workflows/gradle.yml | 39 ++++++++++++++++++++++++++++++++++++ .github/workflows/gradle.yml | 34 ------------------------------- README.md | 2 +- 3 files changed, 40 insertions(+), 35 deletions(-) create mode 100644 .gitea/workflows/gradle.yml delete mode 100644 .github/workflows/gradle.yml diff --git a/.gitea/workflows/gradle.yml b/.gitea/workflows/gradle.yml new file mode 100644 index 0000000..61489c4 --- /dev/null +++ b/.gitea/workflows/gradle.yml @@ -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 diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml deleted file mode 100644 index c5d1079..0000000 --- a/.github/workflows/gradle.yml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/README.md b/README.md index 7587806..1c108df 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ## 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!