修改任务及步骤名称
This commit is contained in:
parent
8d4e0d2a89
commit
db8f007ca8
@ -28,7 +28,7 @@ jobs:
|
|||||||
yarn
|
yarn
|
||||||
yarn run buildas local-test
|
yarn run buildas local-test
|
||||||
tar czvf ./dist-local-test.tar.gz ./dist
|
tar czvf ./dist-local-test.tar.gz ./dist
|
||||||
- name: 打包发送到本地测试环境
|
- name: 打包发送到服务器
|
||||||
uses: https://gitea.joylink.club/appleboy/scp-action@v0.1.7
|
uses: https://gitea.joylink.club/appleboy/scp-action@v0.1.7
|
||||||
with:
|
with:
|
||||||
host: ${{ secrets.LOCAL_233_SSH_HOST }}
|
host: ${{ secrets.LOCAL_233_SSH_HOST }}
|
||||||
@ -38,19 +38,15 @@ jobs:
|
|||||||
source: ./dist-local-test.tar.gz
|
source: ./dist-local-test.tar.gz
|
||||||
target: /home/minio/oss/rt-sim-training-client
|
target: /home/minio/oss/rt-sim-training-client
|
||||||
overwrite: true
|
overwrite: true
|
||||||
- name: SSH连接233并解压发布
|
- name: SSH连接并解压发布
|
||||||
uses: https://gitea.joylink.club/appleboy/ssh-action@v1.0.3
|
uses: https://gitea.joylink.club/appleboy/ssh-action@v1.0.3
|
||||||
with:
|
with:
|
||||||
host: ${{ secrets.LOCAL_233_SSH_HOST }}
|
host: ${{ secrets.LOCAL_233_SSH_HOST }}
|
||||||
port: ${{ secrets.LOCAL_233_SSH_PORT }}
|
port: ${{ secrets.LOCAL_233_SSH_PORT }}
|
||||||
username: ${{ secrets.LOCAL_233_SSH_USER }}
|
username: ${{ secrets.LOCAL_233_SSH_USER }}
|
||||||
password: ${{ secrets.LOCAL_233_SSH_PASSWORD }}
|
password: ${{ secrets.LOCAL_233_SSH_PASSWORD }}
|
||||||
script: >
|
script: |
|
||||||
cd /home/minio/oss/rt-sim-training-client
|
cd /home/minio/oss/rt-sim-training-client
|
||||||
|
|
||||||
rm -rf /usr/local/joylink/client/cbtc
|
rm -rf /usr/local/joylink/client/cbtc
|
||||||
|
|
||||||
mkdir -p /usr/local/joylink/client
|
mkdir -p /usr/local/joylink/client
|
||||||
|
|
||||||
tar xz --strip 2 -C /usr/local/joylink/client -f dist-local-test.tar.gz
|
tar xz --strip 2 -C /usr/local/joylink/client -f dist-local-test.tar.gz
|
||||||
- run: echo "This job's status is ${{ job.status }}."
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
name: local-test分支构建发布到本地服务器
|
name: master分支构建发布到公网服务器
|
||||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -28,7 +28,7 @@ jobs:
|
|||||||
yarn
|
yarn
|
||||||
yarn run build
|
yarn run build
|
||||||
tar czvf ./dist-master.tar.gz ./dist
|
tar czvf ./dist-master.tar.gz ./dist
|
||||||
- name: 打包发送到本地测试环境
|
- name: 打包发送到服务器
|
||||||
uses: https://gitea.joylink.club/appleboy/scp-action@v0.1.7
|
uses: https://gitea.joylink.club/appleboy/scp-action@v0.1.7
|
||||||
with:
|
with:
|
||||||
host: ${{ secrets.PUB1_DOMAIN_SSH_HOST }}
|
host: ${{ secrets.PUB1_DOMAIN_SSH_HOST }}
|
||||||
@ -38,7 +38,7 @@ jobs:
|
|||||||
source: ./dist-master.tar.gz
|
source: ./dist-master.tar.gz
|
||||||
target: /mnt/data/published/rt-sim-training-client
|
target: /mnt/data/published/rt-sim-training-client
|
||||||
overwrite: true
|
overwrite: true
|
||||||
- name: SSH连接233并解压发布
|
- name: SSH连接并解压发布
|
||||||
uses: https://gitea.joylink.club/appleboy/ssh-action@v1.0.3
|
uses: https://gitea.joylink.club/appleboy/ssh-action@v1.0.3
|
||||||
with:
|
with:
|
||||||
host: ${{ secrets.PUB1_DOMAIN_SSH_HOST }}
|
host: ${{ secrets.PUB1_DOMAIN_SSH_HOST }}
|
||||||
@ -50,4 +50,3 @@ jobs:
|
|||||||
rm -rf /usr/local/joylink/client/cbtc
|
rm -rf /usr/local/joylink/client/cbtc
|
||||||
mkdir -p /usr/local/joylink/client
|
mkdir -p /usr/local/joylink/client
|
||||||
tar xz --strip 2 -C /usr/local/joylink/client -f dist-master.tar.gz
|
tar xz --strip 2 -C /usr/local/joylink/client -f dist-master.tar.gz
|
||||||
- run: echo "This job's status is ${{ job.status }}."
|
|
||||||
|
Loading…
Reference in New Issue
Block a user