From 8d4e0d2a89419aab336101bdca3f517eaab79006 Mon Sep 17 00:00:00 2001 From: soul-walker Date: Tue, 26 Mar 2024 17:57:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9yaml=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E9=94=99=E8=AF=AF=EF=BC=88tab=E6=8D=A2=E6=88=90=E7=A9=BA?= =?UTF-8?q?=E6=A0=BC=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/CICD_local_test.yaml | 15 +++++++++------ .gitea/workflows/CICD_master.yaml | 2 +- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/CICD_local_test.yaml b/.gitea/workflows/CICD_local_test.yaml index 053945474..21d05ad81 100644 --- a/.gitea/workflows/CICD_local_test.yaml +++ b/.gitea/workflows/CICD_local_test.yaml @@ -1,10 +1,10 @@ +--- name: local-test分支构建发布到本地服务器 run-name: ${{ gitea.actor }} is testing out Gitea Actions on: push: branches: - local-test - jobs: Build-Publish: runs-on: joylink-local233 @@ -16,14 +16,14 @@ jobs: - name: 设置node环境 uses: https://gitea.joylink.club/actions/local-setup-node@v0.1.1 with: - version: 'v14.21.3' - cache: 'yarn' - cache-dependency-path: 'yarn.lock' + version: v14.21.3 + cache: yarn + cache-dependency-path: yarn.lock - name: 安装yarn,并build run: | node -v npm config set registry https://registry.npmmirror.com - npm install --global yarn + npm install --global yarn yarn config set registry https://registry.npmmirror.com yarn yarn run buildas local-test @@ -45,9 +45,12 @@ jobs: port: ${{ secrets.LOCAL_233_SSH_PORT }} username: ${{ secrets.LOCAL_233_SSH_USER }} password: ${{ secrets.LOCAL_233_SSH_PASSWORD }} - script: | + script: > cd /home/minio/oss/rt-sim-training-client + rm -rf /usr/local/joylink/client/cbtc + mkdir -p /usr/local/joylink/client + tar xz --strip 2 -C /usr/local/joylink/client -f dist-local-test.tar.gz - run: echo "This job's status is ${{ job.status }}." diff --git a/.gitea/workflows/CICD_master.yaml b/.gitea/workflows/CICD_master.yaml index fb74e349a..6ae066b1c 100644 --- a/.gitea/workflows/CICD_master.yaml +++ b/.gitea/workflows/CICD_master.yaml @@ -23,7 +23,7 @@ jobs: run: | node -v npm config set registry https://registry.npmmirror.com - npm install --global yarn + npm install --global yarn yarn config set registry https://registry.npmmirror.com yarn yarn run build