Update build-and-deploy.yml

This commit is contained in:
Erick Ruiz de Chavez 2022-04-29 15:07:44 -04:00 committed by GitHub
parent 3624d5376d
commit 8741a77934
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,11 +17,10 @@ jobs:
- run: npm ci
- run: npm run build --if-present
- name: Deploy site
uses: appleboy/scp-action@v0.1.1
uses: wlixcc/SFTP-Deploy-Action@v1.2.2
with:
host: ${{ secrets.HOST }}
port: ${{ secrets.PORT }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
source: index.html,styles.css
target: ${{ secrets.TARGET }}
server: ${{ secrets.HOST }}
port: ${{ secrets.PORT }}
ssh_private_key: ${{ secrets.KEY }}
remote_path: ${{ secrets.TARGET }}