30 lines
578 B
YAML
30 lines
578 B
YAML
name: build
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: 'Checkout source code'
|
|
uses: actions/checkout@v4
|
|
|
|
- name: 'Set up JDK'
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
java-version: '11'
|
|
distribution: 'adopt'
|
|
cache: 'gradle'
|
|
|
|
- name: 'Build, test, and package'
|
|
run: ./gradlew build --no-daemon
|
|
|
|
- name: 'Upload artifact'
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: MobArena.jar
|
|
path: build/libs/MobArena.jar
|