name: Deploy code to kinsta on: push: branches: - main workflow_dispatch: inputs: sync: description: 'File synchronization' required: true default: 'full' jobs: production: name: 🚀 Deploy on production if: github.ref_name == 'main' runs-on: ubuntu-latest steps: - name: Get latest production code uses: actions/checkout@v4 with: fetch-depth: 0 - name: Sync production files uses: milanmk/actions-file-deployer@master with: remote-protocol: 'sftp' remote-host: ${{ secrets.YOUR_KINSTA_SERVER }} remote-port: ${{ secrets.YOUR_KINSTA_PORT }} remote-user: ${{ secrets.YOUR_KINSTA_USERNAME }} remote-password: ${{ secrets.YOUR_KINSTA_PASSWORD }} remote-path: ${{ secrets.YOUR_KINSTA_DIR }} sync: 'full' # (full, delta) debug: false