From 2e83db654bb8b3b2e134f852ff2a4fe73aec3008 Mon Sep 17 00:00:00 2001 From: Dmitry Isaenko Date: Thu, 21 Nov 2024 00:10:58 +0300 Subject: [PATCH] Correct yaml, avoid warnings --- .woodpecker/woodpecker.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .woodpecker/woodpecker.yml diff --git a/.woodpecker/woodpecker.yml b/.woodpecker/woodpecker.yml new file mode 100644 index 0000000..ca20a9f --- /dev/null +++ b/.woodpecker/woodpecker.yml @@ -0,0 +1,31 @@ +steps: + - name: build + when: + event: [ tag, push ] + image: maven:3-openjdk-17 + commands: + - mvn -B -DskipTests clean install + - mvn test -B + volumes: + - /home/docker/woodpecker/files/m2:/root/.m2 + - name: archive-artifacts + image: alpine:latest + commands: + - mkdir -p /builds/Tihwin + - cp target/Tihwin-*[0-9].jar /builds/Tihwin/ + - cp target/Tihwin-*[0-9].exe /builds/Tihwin/ + volumes: + - /home/www/builds:/builds + - name: make-win-installer + when: + event: [ tag, push ] + image: wheatstalk/makensis:3 + commands: + - cp target/Tihwin-*.exe NSIS/Tihwin.exe + - NSIS/update_version.sh + - cd NSIS + - makensis -V4 ./installer.nsi + - cp Installer-*.exe /builds/Tihwin/ + volumes: + - /home/www/builds:/builds + - /home/docker/woodpecker/files/assembly/openjdk-19.0.2:/assembly/jdk \ No newline at end of file