From fea3996866e7ba8b0010b69bf537ce96e7c8f718 Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Fri, 1 Nov 2024 19:06:19 +0100 Subject: [PATCH] Add workflow --- .forgejo/workflows/build.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .forgejo/workflows/build.yml diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml new file mode 100644 index 0000000..e42dde1 --- /dev/null +++ b/.forgejo/workflows/build.yml @@ -0,0 +1,20 @@ +on: [push] +jobs: + deploy: + runs-on: docker + container: debian:sid + steps: + - name: Prepare for installation + run: apt update + - name: Install JDK + run: apt install --no-install-recommends -y openjdk-21-jdk-headless maven git + + - name: Clone repository + run: git clone https://git.m724.eu/Minecon724/realweather.git . + + - name: Build + run: mvn clean package + - name: Upload artifacts + uses: https://github.com/actions/upload-artifact@v3 + with: + path: target/realweather-*.jar \ No newline at end of file