diff --git a/.gitea/workflows/CICD_local_test.yaml b/.gitea/workflows/CICD_local_test.yaml index 21d05ad81..44a8992d4 100644 --- a/.gitea/workflows/CICD_local_test.yaml +++ b/.gitea/workflows/CICD_local_test.yaml @@ -28,7 +28,7 @@ jobs: yarn yarn run buildas local-test tar czvf ./dist-local-test.tar.gz ./dist - - name: 打包发送到本地测试环境 + - name: 打包发送到服务器 uses: https://gitea.joylink.club/appleboy/scp-action@v0.1.7 with: host: ${{ secrets.LOCAL_233_SSH_HOST }} @@ -38,19 +38,15 @@ jobs: source: ./dist-local-test.tar.gz target: /home/minio/oss/rt-sim-training-client overwrite: true - - name: SSH连接233并解压发布 + - name: SSH连接并解压发布 uses: https://gitea.joylink.club/appleboy/ssh-action@v1.0.3 with: host: ${{ secrets.LOCAL_233_SSH_HOST }} 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 6ae066b1c..b9ac9c9ed 100644 --- a/.gitea/workflows/CICD_master.yaml +++ b/.gitea/workflows/CICD_master.yaml @@ -1,4 +1,4 @@ -name: local-test分支构建发布到本地服务器 +name: master分支构建发布到公网服务器 run-name: ${{ gitea.actor }} is testing out Gitea Actions on: push: @@ -28,7 +28,7 @@ jobs: yarn yarn run build tar czvf ./dist-master.tar.gz ./dist - - name: 打包发送到本地测试环境 + - name: 打包发送到服务器 uses: https://gitea.joylink.club/appleboy/scp-action@v0.1.7 with: host: ${{ secrets.PUB1_DOMAIN_SSH_HOST }} @@ -38,7 +38,7 @@ jobs: source: ./dist-master.tar.gz target: /mnt/data/published/rt-sim-training-client overwrite: true - - name: SSH连接233并解压发布 + - name: SSH连接并解压发布 uses: https://gitea.joylink.club/appleboy/ssh-action@v1.0.3 with: host: ${{ secrets.PUB1_DOMAIN_SSH_HOST }} @@ -50,4 +50,3 @@ jobs: rm -rf /usr/local/joylink/client/cbtc mkdir -p /usr/local/joylink/client tar xz --strip 2 -C /usr/local/joylink/client -f dist-master.tar.gz - - run: echo "This job's status is ${{ job.status }}."