From 94b1e508fd12a5286c4d5ef54c5a35e9bd479022 Mon Sep 17 00:00:00 2001 From: EricZeng Date: Fri, 7 Jul 2023 12:36:50 +0800 Subject: [PATCH] =?UTF-8?q?Build=E4=B9=8B=E5=90=8E=E7=94=9F=E6=88=90?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1、修改文件名; 2、Build之后生成安装包,方便用户直接下载使用; --- .github/workflows/build-all.yml | 28 --------------------- .github/workflows/ci_build.yml | 43 +++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 28 deletions(-) delete mode 100644 .github/workflows/build-all.yml create mode 100644 .github/workflows/ci_build.yml diff --git a/.github/workflows/build-all.yml b/.github/workflows/build-all.yml deleted file mode 100644 index 5a380619..00000000 --- a/.github/workflows/build-all.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Build All - -on: - push: - branches: [ "master" ] - pull_request: - branches: [ "master" ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - java-version: '11' - distribution: 'temurin' - cache: maven - - name: Setup Node - uses: actions/setup-node@v1 - with: - node-version: '12.22.12' - - name: Build with Maven - run: mvn -U clean package -Dmaven.test.skip=true - diff --git a/.github/workflows/ci_build.yml b/.github/workflows/ci_build.yml new file mode 100644 index 00000000..0476a94a --- /dev/null +++ b/.github/workflows/ci_build.yml @@ -0,0 +1,43 @@ +name: KnowStreaming Build + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + cache: maven + + - name: Setup Node + uses: actions/setup-node@v1 + with: + node-version: '12.22.12' + + - name: Build With Maven + run: mvn -Prelease-package -Dmaven.test.skip=true clean install -U + + - name: Get KnowStreaming Version + if: ${{ success() }} + run: | + version=`mvn -Dexec.executable='echo' -Dexec.args='${project.version}' --non-recursive exec:exec -q` + echo "VERSION=${version}" >> $GITHUB_ENV + + - name: Upload Binary Package + if: ${{ success() }} + uses: actions/upload-artifact@v3 + with: + name: KnowStreaming-${{ env.VERSION }}.tar.gz + path: km-dist/target/KnowStreaming-${{ env.VERSION }}.tar.gz -- GitLab