From 11e2bd79b3314eec4c680add60346ac8418f26f4 Mon Sep 17 00:00:00 2001 From: Marc Boehm Date: Mon, 25 Mar 2024 08:49:37 +0100 Subject: [PATCH] CAPAUT-353 Add wf --- .gitea/workflows/build-java.yaml | 36 ++++++++++++++++++++++++++++++++ .gitea/workflows/test.yaml | 13 ------------ 2 files changed, 36 insertions(+), 13 deletions(-) create mode 100644 .gitea/workflows/build-java.yaml delete mode 100644 .gitea/workflows/test.yaml diff --git a/.gitea/workflows/build-java.yaml b/.gitea/workflows/build-java.yaml new file mode 100644 index 0000000..e9d2062 --- /dev/null +++ b/.gitea/workflows/build-java.yaml @@ -0,0 +1,36 @@ +# +# +# Build workflow for all modules of captica.expert +# +# Project: workflows +# Author: Marc Böhm +# License: MIT License (see LICENSE.md) +# +# Copyright (c) captica GmbH est. 2021 +# +name: Example workflow +on: + workflow_call: +jobs: + Build: + name: Java Build Job + runs-on: nodejs-ubuntu + steps: + - name: Checkout source code + uses: actions/checkout@v4 + - name: Setup java runtime + uses: actions/setup-java@v4 + with: + distribution: 'zulu' + java-version: '21' + - name: Run gradle build process + run: | + ./gradlew build + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: artifacts-build + path: | + build/libs/ + build/*.sh + retention-days: 10 \ No newline at end of file diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml deleted file mode 100644 index 700ee48..0000000 --- a/.gitea/workflows/test.yaml +++ /dev/null @@ -1,13 +0,0 @@ -name: Test -run-name: ${{ gitea.actor }} pushed new changes to ${{ gitea.branch }} - -on: - workflow-call: - -jobs: - Build: - runs-on: nodejs-ubuntu - steps: - - name: Test step - run: | - echo "Hello World" \ No newline at end of file