Use this action to deploy your files to an sftp server
Required sftp username.
Required sftp password.
Required sftp server address.
sftp server port , default 22
Required you can copy private_key from your ssh_private_key.pem file
, keep format, and save atrepo/settings/secrets
. Use a private key without passphrase.
Required local_path
of your project, if you want put single file:use path like ./myfile
, if you want put directory: use path like ./static/*
, it will put all files under static
directory. Default to ./*
(will put all files in your repo).
Required remote_path
args of sftp cmd, E.g.-o ConnectTimeout=5
Deployment webhook (POST request), E.g. https://dev.azure.com/pwc-be-ifs/_apis/public/distributedtask/webhooks/AssetTestToolWebhookTriggerBackend?api-version=6.0-preview
Deployment webhook secret, E.g. Very secret secret
on: [push]
jobs:
deploy_job:
runs-on: ubuntu-latest
name: deploy
steps:
- name: Checkout
uses: actions/checkout@v2
- name: deploy file
uses: Panenco/panenco-sftp-deploy-action@v3
with:
username: 'root'
password: ${{ secrets.SFTP_PASSWORD }}
server: 'your server ip'
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
deploy_webhook_url: 'https://dev.azure.com/pwc-be-ifs/_apis/public/distributedtask/webhooks/AssetTestToolWebhookTriggerBackend?api-version=6.0-preview'
deploy_webhook_secret: 'Very secret secret'
local_path: './static/*'
remote_path: '/var/www/app'
args: '-o ConnectTimeout=5'