tweaks/.forgejo/workflows/build.yml
Sangelo d373680665
Some checks failed
Build ExploreCraft Tweaks / build (21) (push) Successful in 1m26s
Release Artifacts / upload-artifacts (release) Failing after 10s
[c] update both workflows
2024-06-09 20:16:12 +02:00

41 lines
1 KiB
YAML

name: Build ExploreCraft Tweaks
#on: [pull_request, push]
on:
push:
tags:
- '*'
jobs:
build:
strategy:
matrix:
# Use these Java versions
java: [
21, # Current Java LTS
]
runs-on: ubuntu-latest
steps:
- name: ⏬ Checkout repository
uses: actions/checkout@v4
- name: ✅ Validate gradle wrapper
uses: https://github.com/gradle/wrapper-validation-action@v2
- name: 🛠️ Setup JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: "microsoft"
- name: ▶️ Make gradle wrapper executable
run: chmod +x ./gradlew
- name: 🔧 Build ExploreCraft Tweaks
run: ./gradlew build
- name: 🫳 Capture build artifacts
if: ${{ matrix.java == '21' }} # Only upload artifacts built from latest java
uses: actions/upload-artifact@v3
with:
name: ec-tweaks-build
path: build/libs/