mkdir and no longer change dir
This commit is contained in:
parent
5110e72a55
commit
1f88e36305
|
@ -23,6 +23,7 @@ jobs:
|
|||
npm --prefix ${{ gitea.workspace }}/typescript/frontend-marios2 run build
|
||||
- name: Configure SSH
|
||||
run: |
|
||||
mkdir /root/.ssh/
|
||||
touch /root/.ssh/config
|
||||
cat >> /root/.ssh/config <<END
|
||||
Host staging
|
||||
|
@ -34,9 +35,8 @@ jobs:
|
|||
env:
|
||||
SSH_USER: ubuntu
|
||||
SSH_HOST: 91.92.154.141
|
||||
- run: cd ${{ gitea.workspace }}
|
||||
- run: scp -vo StrictHostKeyChecking=no -r ./csharp/App/Backend/bin/Release/net6.0/linux-x64/publish/ staging:~/backend
|
||||
- run: scp -vo StrictHostKeyChecking=no -r ./typescript/frontend-marios2/* staging:~/frontend/
|
||||
- run: scp -vo StrictHostKeyChecking=no -r ${{ gitea.workspace }}/csharp/App/Backend/bin/Release/net6.0/linux-x64/publish/ staging:~/backend
|
||||
- run: scp -vo StrictHostKeyChecking=no -r ${{ gitea.workspace }}/typescript/frontend-marios2/* staging:~/frontend/
|
||||
- run: ssh -vo StrictHostKeyChecking=no staging 'sudo systemctl restart backend'
|
||||
- run: ssh -vo StrictHostKeyChecking=no staging 'sudo cp -rf ~/frontend/build/* /var/www/html/monitor.innov.energy/html/'
|
||||
- run: ssh -vo StrictHostKeyChecking=no staging 'sudo npm install -g serve'
|
||||
|
|
Loading…
Reference in New Issue