diff --git a/.gitea/workflows/build-and-deploy.yml b/.gitea/workflows/build-and-deploy.yml index 76e07c0..ee7d817 100644 --- a/.gitea/workflows/build-and-deploy.yml +++ b/.gitea/workflows/build-and-deploy.yml @@ -19,9 +19,12 @@ jobs: run: hugo - name: Setup the hostname with the private key that we have run: mkdir -p ~/.ssh/ && ssh-keyscan git.shockrah.xyz >> ~/.ssh/known_hosts - - name: Setup SSH to copy files up to remote webserver - uses: webfactory/ssh-agent@v0.9.0 + - name: SCP Files with marketplace action + uses: appleboy/scp-action@v0.1.7 with: - ssh-private-key: ${{ secrets.PRIVATE_KEY }} - - name: SCP Files to resume web server - run: "scp -o UserKnownHostsFile=/dev/null -r public/ $ssh_target:$remote_path" + host: ${{ secrets.HOST }} + username: ${{ secrets.USER }} + port: ${{ secrets.PORT }} + key: ${{ secrets.PRIVATE_KEY }} + source: public/ + target: /opt/nginx/test.shockrah.xyz