Merge pull request #276 from One-Language/dependabot/npm_and_yarn/mic… #148
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 |