Created
April 10, 2022 09:28
-
-
Save RobinBoers/cc8f8f97d052c7a502f3f80277c63ca6 to your computer and use it in GitHub Desktop.
GitHub action to deploy my website via FTP
This file contains hidden or 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
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/[email protected] | |
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