Add workflow
Some checks failed
/ deploy (push) Failing after 1m8s

This commit is contained in:
Minecon724 2024-11-01 19:09:12 +01:00
parent 4e454cb047
commit 8430d3ef6d
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8
4 changed files with 23 additions and 3 deletions

View file

@ -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

View file

@ -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.`

View file

@ -7,8 +7,8 @@
<properties>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<jarsigner.keystore>${project.basedir}/keystore.jks</jarsigner.keystore>
<jarsigner.alias>mykey</jarsigner.alias>
<jarsigner.keystore>${project.basedir}/testkeystore.jks</jarsigner.keystore>
<jarsigner.alias>testkey</jarsigner.alias>
<jarsigner.storepass>123456</jarsigner.storepass>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>