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

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

View File

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