修改yaml格式错误(tab换成空格)
All checks were successful
local-test分支构建发布到本地服务器 / Build-Publish (push) Successful in 7m20s
All checks were successful
local-test分支构建发布到本地服务器 / Build-Publish (push) Successful in 7m20s
This commit is contained in:
parent
abdce5a30d
commit
8d4e0d2a89
@ -1,10 +1,10 @@
|
|||||||
|
---
|
||||||
name: local-test分支构建发布到本地服务器
|
name: local-test分支构建发布到本地服务器
|
||||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- local-test
|
- local-test
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Build-Publish:
|
Build-Publish:
|
||||||
runs-on: joylink-local233
|
runs-on: joylink-local233
|
||||||
@ -16,9 +16,9 @@ jobs:
|
|||||||
- name: 设置node环境
|
- name: 设置node环境
|
||||||
uses: https://gitea.joylink.club/actions/local-setup-node@v0.1.1
|
uses: https://gitea.joylink.club/actions/local-setup-node@v0.1.1
|
||||||
with:
|
with:
|
||||||
version: 'v14.21.3'
|
version: v14.21.3
|
||||||
cache: 'yarn'
|
cache: yarn
|
||||||
cache-dependency-path: 'yarn.lock'
|
cache-dependency-path: yarn.lock
|
||||||
- name: 安装yarn,并build
|
- name: 安装yarn,并build
|
||||||
run: |
|
run: |
|
||||||
node -v
|
node -v
|
||||||
@ -45,9 +45,12 @@ jobs:
|
|||||||
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 }}."
|
- run: echo "This job's status is ${{ job.status }}."
|
||||||
|
Loading…
Reference in New Issue
Block a user