Shared GitHub Actions workflows for StriderMC projects.
.github/workflows/build.yaml builds a Gradle project and uploads the resulting jars as a workflow artifact.
Add this to a project repository as .github/workflows/build.yml:
name: Build
on:
push:
pull_request:
jobs:
build:
uses: StriderMC/ci/.github/workflows/build.yaml@main| Input | Default | Description |
|---|---|---|
build_number |
run number | Exposed to Gradle as BUILD_NUMBER |
java_version |
25 |
Java version to build with |
gradle_tasks |
build |
Gradle tasks to run |
artifact_name |
build |
Name of the uploaded artifact |
artifact_path |
build/libs/*.jar |
Files to upload as the artifact |