Files
oc2r/.github/workflows/build.yml
2025-07-10 14:35:00 -04:00

36 lines
726 B
YAML

#file: noinspection UndefinedAction,UndefinedParamsPresent
name: build
on:
workflow_dispatch:
push:
branches: [ '1.20.1' ]
jobs:
build:
strategy:
matrix:
java: [ 17 ]
os: [ ubuntu-22.04 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: ${{ runner.os }}-gradle-
- name: build
run: |
./gradlew build
- uses: actions/upload-artifact@v4
with:
name: oc2r.jar
path: build/libs/*-all.jar