Files
Explosion-Overhaul/.gitea/workflows/build.yml
MrSphay d75f342b4f
All checks were successful
Build / build (push) Successful in 8m49s
Publish private test jar branch
2026-05-07 01:28:59 +02:00

48 lines
1.2 KiB
YAML

name: Build
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '21'
- name: Build
run: ./gradlew build --stacktrace --no-configuration-cache
- name: Upload mod jar
uses: actions/upload-artifact@v3
if: always()
with:
name: explosionoverhaul-neoforge-build
path: |
build/libs/**
- name: Publish private test jar branch
if: success()
run: |
set -euo pipefail
mkdir -p /tmp/explosionoverhaul-test-jar
cp build/libs/*.jar /tmp/explosionoverhaul-test-jar/
git config user.name "gitea-actions"
git config user.email "actions@git.wilkensxl.de"
git checkout --orphan test-jar
git rm -rf .
mkdir -p jars
cp /tmp/explosionoverhaul-test-jar/*.jar jars/
git add jars
git commit -m "Update private test jar [skip ci]"
git push --force origin HEAD:test-jar