From 8430d3ef6dae96dd799906806da60778679158cd Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Fri, 1 Nov 2024 19:09:12 +0100 Subject: [PATCH] Add workflow --- .forgejo/workflows/build.yml | 20 ++++++++++++++++++++ README.md | 2 +- pom.xml | 4 ++-- testkeystore => testkeystore.jks | Bin 4 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 .forgejo/workflows/build.yml rename testkeystore => testkeystore.jks (100%) 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 diff --git a/README.md b/README.md index 9277a8d..8018048 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ By default, it's signed with the test key. #### Signing A test (and default) keystore is provided: -- keystore: `testkeystore` +- keystore: `testkeystore.jks` - storepass: `123456` - alias: `testkey` Override with `-Djarsigner.` \ No newline at end of file diff --git a/pom.xml b/pom.xml index e10ef1d..5c66844 100644 --- a/pom.xml +++ b/pom.xml @@ -7,8 +7,8 @@ 21 21 - ${project.basedir}/keystore.jks - mykey + ${project.basedir}/testkeystore.jks + testkey 123456 UTF-8 UTF-8 diff --git a/testkeystore b/testkeystore.jks similarity index 100% rename from testkeystore rename to testkeystore.jks