-
-
Save sumonst21/87b67ef55ad99a9caa670beccbfde496 to your computer and use it in GitHub Desktop.
Deploy to cPanel with GitHub Actions (FTP)
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 cPanel | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
FTP-Deploy-Action: | |
name: FTP-Deploy-Action | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2.1.0 | |
with: | |
fetch-depth: 2 | |
# Deploy to cPanel | |
- name: FTP-Deploy-Action | |
uses: SamKirkland/FTP-Deploy-Action@3.1.1 | |
with: | |
ftp-server: ${{ secrets.FTP_SERVER }} | |
ftp-username: ${{ secrets.FTP_USERNAME }} | |
ftp-password: ${{ secrets.FTP_PASSWORD }} | |
# Purge CF's cache (optional) | |
- name: Purge cache | |
uses: jakejarvis/cloudflare-purge-action@master | |
env: | |
CLOUDFLARE_ZONE: ${{ secrets.CLOUDFLARE_ZONE }} | |
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment