This is an automated email from the ASF dual-hosted git repository.

marat pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-karavan.git


The following commit(s) were added to refs/heads/main by this push:
     new ef557f9f Prototype actions #762
ef557f9f is described below

commit ef557f9fc1bf58b00e14a5d2ec5bf449b90a7ca1
Author: Marat Gubaidullin <marat.gubaidul...@gmail.com>
AuthorDate: Wed May 10 16:02:06 2023 -0400

    Prototype actions #762
---
 .github/workflows/cli.yml | 49 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml
new file mode 100644
index 00000000..21427818
--- /dev/null
+++ b/.github/workflows/cli.yml
@@ -0,0 +1,49 @@
+name: cli 
+
+on:
+  push:
+    branches: [ main ]
+  workflow_dispatch:
+  pull_request:
+    branches: [ main ]
+
+env:
+  TAG: 3.20.2-SNAPSHOT
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout Karavan
+        uses: actions/checkout@v3
+        with:
+          path: karavan
+
+      - name: Set up JDK 11
+        uses: actions/setup-java@v3
+        with:
+          distribution: adopt
+          java-version: 11
+
+      - name: Cache local Maven repository
+        uses: actions/cache@v3
+        with:
+          path: |
+            ~/.m2/repository
+            !~/.m2/repository/org/apache/camel/karavan
+          key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+          restore-keys: ${{ runner.os }}-maven-
+      
+      #  Build Karavan cli
+      - name: Build Karavan cli
+        working-directory: ./karavan
+        run: |
+          mvn package -f karavan-cli 
+        if: ${{ github.ref == 'refs/heads/main' }}
+
+      - name: Karavan cli (upload)
+        uses: actions/upload-artifact@v3
+        with:
+          name: karavan-cli.jar
+          path: ./karavan-cli/target/karavan-cli-${{ env.TAG }}.jar
+        if: ${{ github.ref == 'refs/heads/main' }}
\ No newline at end of file

Reply via email to