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