Deploy to Digital Ocean #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to Digital Ocean | |
on: | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4.1.3 | |
- name: Deploy to SFTP | |
uses: appleboy/scp-action@v0.1.3 | |
with: | |
host: ${{ secrets.SFTP_SERVER }} | |
username: ${{ secrets.SFTP_USERNAME }} | |
password: ${{ secrets.SFTP_PASSWORD }} | |
port: 22 | |
source: "." # Deploy all files and directories in the repo | |
target: "/var/www/github-proxy.com" # Remote directory |