work on ci
This commit is contained in:
parent
a864d6931a
commit
035bec9ec7
|
@ -13,7 +13,24 @@ jobs:
|
||||||
new-deploy-account:
|
new-deploy-account:
|
||||||
name: Deploy
|
name: Deploy
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
LINGDOCS_NPM_TOKEN: ${{ secrets.LINGDOCS_NPM_TOKEN }}
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- run: |
|
||||||
|
cd account
|
||||||
|
npm install
|
||||||
|
cd ..
|
||||||
|
tar --exclude-vcs -czf account.tar.gz account
|
||||||
|
- name: copy file via ssh key
|
||||||
|
uses: appleboy/scp-action@v0.1.4
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.HOST }}
|
||||||
|
username: ${{ secrets.USERNAME }}
|
||||||
|
port: ${{ secrets.PORT }}
|
||||||
|
key: ${{ secrets.KEY }}
|
||||||
|
source: "account.tar.gz"
|
||||||
|
target: apps/live
|
||||||
- name: executing remote ssh commands using password
|
- name: executing remote ssh commands using password
|
||||||
uses: appleboy/ssh-action@v1.0.0
|
uses: appleboy/ssh-action@v1.0.0
|
||||||
with:
|
with:
|
||||||
|
@ -21,4 +38,4 @@ jobs:
|
||||||
username: ${{ secrets.USERNAME }}
|
username: ${{ secrets.USERNAME }}
|
||||||
key: ${{ secrets.KEY }}
|
key: ${{ secrets.KEY }}
|
||||||
port: ${{ secrets.PORT }}
|
port: ${{ secrets.PORT }}
|
||||||
script: touch ciwuzhere.txt
|
script: touch ciwuzhere2.txt
|
||||||
|
|
Loading…
Reference in New Issue