Use github pages to push to the server

name: FTP Deploy

on: push

jobs:
  deploy:
    name: Deploy to FTP
    runs-on: ubuntu-latest

    steps:
    - name: Checkout code
      uses: actions/checkout@v2

    - name: Deploy to FTP
      uses: SamKirkland/FTP-Deploy-Action@4.2.0
      with:
        server: $
        username: $
        password: $
        server-dir: serverpath/wp-content/plugins/biotech-blocks/
        local-dir: ./

YOURSERVER = Example (ftp.markokrstic.com)

Navigate to the settings > Secrets

Image

Add your secrets

Image

Get more actions examples

https://github.com/marketplace/actions/sftp-deploy

Click to Copy