Skip to content

Instantly share code, notes, and snippets.

@RobinBoers
Created April 10, 2022 09:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RobinBoers/cc8f8f97d052c7a502f3f80277c63ca6 to your computer and use it in GitHub Desktop.
Save RobinBoers/cc8f8f97d052c7a502f3f80277c63ca6 to your computer and use it in GitHub Desktop.
GitHub action to deploy my website via FTP
on:
push:
branches: [ master ]
name: Deploy website via FTP
jobs:
web-deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Sync files
uses: SamKirkland/FTP-Deploy-Action@4.3.0
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
server-dir: domains/geheimesite.nl/public_html/
exclude: |
**/.git*
**/.git*/**
**/node_modules/**
library/website/version/**
library/projects/websites/**
package.json
package-lock.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment