lilJudd/.forgejo/workflows/action.yml

26 lines
644 B
YAML
Raw Normal View History

2023-08-12 14:12:10 +02:00
name: Build Gradle project
on:
push:
jobs:
2023-08-12 14:12:10 +02:00
build-gradle-project:
runs-on: ubuntu-latest
steps:
- name: apt update
2023-08-18 08:55:04 +02:00
run: apt update
- name: apt upgrade
run: apt upgrade -y
2023-08-18 08:56:42 +02:00
- name: install prerequisits
2023-08-18 11:16:47 +02:00
run: apt install openjdk-17-jdk ca-certificates-java ssl-cert openssl ca-certificates -y
2023-08-12 14:12:10 +02:00
- name: Checkout project sources
uses: actions/checkout@v3
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
2023-08-18 11:40:51 +02:00
- name: Run build with Gradle Wrapper
run: ./gradlew shadowJar
2023-08-18 11:24:48 +02:00
- uses: actions/upload-artifact@v3
2023-08-18 11:25:30 +02:00
with:
2023-08-18 11:44:43 +02:00
name: lilJudd.jar
path: build/libs/