From a051fe634351f9988ac1d404eb77360199f1643c Mon Sep 17 00:00:00 2001 From: xuwei-fit2cloud Date: Wed, 11 Dec 2024 17:40:31 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0=E6=A1=8C=E9=9D=A2?= =?UTF-8?q?=E7=89=88=E7=BC=96=E8=AF=91Action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/desktop_build.yml | 50 +++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/desktop_build.yml diff --git a/.github/workflows/desktop_build.yml b/.github/workflows/desktop_build.yml new file mode 100644 index 0000000000..9e3c67b4fd --- /dev/null +++ b/.github/workflows/desktop_build.yml @@ -0,0 +1,50 @@ +name: Desktop Builder + +on: + workflow_dispatch: + inputs: + branch: + description: 'DataEase Branch' + required: true + default: "dev-v2" + tag: + description: 'tag' + required: true + default: "dev-v2" + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: checkout dataease repo + uses: actions/checkout@v4 + with: + ref: ${{ github.event.inputs.branch }} + - name: Cache local Maven repository + uses: actions/cache@v4 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- + - name: Set up JDK 21 + uses: actions/setup-java@v1 + with: + java-version: 21 + server-id: github + settings-path: ${{ github.workspace }} + - name: Build with Maven + run: | + mvn clean install + cd core + mvn clean package -Pdesktop -U -Dmaven.test.skip=true + ls -alt core-backend/target + - name: setup ossutil + uses: yizhoumo/setup-ossutil@v2 + with: + ossutil-version: '1.7.19' + endpoint: ${{ secrets.OSS_ENDPOINT }} + access-key-id: ${{ secrets.OSS_KEY_ID }} + access-key-secret: ${{ secrets.OSS_KEY_SECRET }} + - name: upload jar to OSS + run: ossutil cp -f core/core-backend/target/CoreApplication.jar oss://${{ secrets.OSS_BUCKET_PATH }}/app-${{ github.event.inputs.tag }}.jar \ No newline at end of file