mkdir and no longer change dir

This commit is contained in:
Kim 2023-10-30 11:02:19 +01:00
parent 5110e72a55
commit 1f88e36305
1 changed files with 3 additions and 3 deletions

View File

@ -23,6 +23,7 @@ jobs:
npm --prefix ${{ gitea.workspace }}/typescript/frontend-marios2 run build npm --prefix ${{ gitea.workspace }}/typescript/frontend-marios2 run build
- name: Configure SSH - name: Configure SSH
run: | run: |
mkdir /root/.ssh/
touch /root/.ssh/config touch /root/.ssh/config
cat >> /root/.ssh/config <<END cat >> /root/.ssh/config <<END
Host staging Host staging
@ -34,9 +35,8 @@ jobs:
env: env:
SSH_USER: ubuntu SSH_USER: ubuntu
SSH_HOST: 91.92.154.141 SSH_HOST: 91.92.154.141
- run: cd ${{ gitea.workspace }} - 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 ./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: scp -vo StrictHostKeyChecking=no -r ./typescript/frontend-marios2/* staging:~/frontend/
- run: ssh -vo StrictHostKeyChecking=no staging 'sudo systemctl restart backend' - 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 cp -rf ~/frontend/build/* /var/www/html/monitor.innov.energy/html/'
- run: ssh -vo StrictHostKeyChecking=no staging 'sudo npm install -g serve' - run: ssh -vo StrictHostKeyChecking=no staging 'sudo npm install -g serve'