use other deploy action
Some checks failed
delpoy / build-and-deploy (push) Failing after 27s

This commit is contained in:
bytedream 2023-08-10 14:57:09 +02:00
parent e39e0640a6
commit cbd7309c9a

View File

@ -17,19 +17,18 @@ jobs:
run: npm run build
- name: Deploy
uses: cross-the-world/ssh-scp-ssh-pipelines@master
uses: alinz/ssh-scp-action@master
with:
host: 10.20.6.7
port: 22
user: root
key: ${{ secrets.SSH_KEY }}
first_ssh: |
ssh_before: |
rm -r /root/website
mkdir /root/website
scp: |
'./build/*' => /root/website
'./package*' => /root/website
last_ssh: |
'build' root@10.20.6.7:/root/website
ssh_after: |
cd /root/website
npm i --omit=dev
nohup node index.js > /var/log/website 2>&1