diff --git a/README.md b/README.md index 8eedb61..3237f43 100644 --- a/README.md +++ b/README.md @@ -154,6 +154,28 @@ jobs: hexo deploy ``` +### GitHub Action with FTP +```yaml +on: push +name: 🚀 Deploy website on push +jobs: + web-deploy: + name: 🎉 Deploy + runs-on: ubuntu-latest + steps: + - name: 🚚 Get latest code + uses: actions/checkout@v2 + + - name: 📂 Sync files + uses: SamKirkland/FTP-Deploy-Action@4.1.0 + with: + server: ftp.samkirkland.com + username: myFtpUserName + password: ${{ secrets.ftp_password }} + port: 21 + server-dir: # Setting the server-directory +``` + ### Testing our builds before pushing content to the `master` branch What if we want to test our builds in another branch before afecting `master`? We'll just need to set a `test` job to do this for us: