Merge pull request #278 from One-Language/dependabot/github_actions/c⦠#150
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 Site | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
mirror_with_sftp: | |
if: github.repository == 'One-Language/Website' | |
name: Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: FTP Deployer | |
uses: sand4rt/ftp-deployer@v1.8 | |
with: | |
sftp: true | |
host: ${{ secrets.SERVER_HOST }} | |
port: 22 | |
username: ${{ secrets.SERVER_USERNAME }} | |
password: ${{ secrets.SERVER_PASSWORD }} | |
remote_folder: ${{ secrets.SERVER_PATH }} | |
local_folder: '.' | |
cleanup: false | |
include: '[ "*", "**/*" ]' | |
exclude: '["node_modules/**", "_secret.php", ".github/**", ".git/**", "*.env"]' | |
passive: true |