diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..014d8e16 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,67 @@ +on: push +name: 🚀 Deploy website on push +jobs: + web-deploy: + name: 🎉 Deploy + runs-on: ubuntu-latest + steps: + - name: 🚚 Get latest code + uses: actions/checkout@v4 + + - name: 📂 Sync files + uses: SamKirkland/FTP-Deploy-Action@v4.3.5 + with: + server: ${{ secrets.host }} + username: ${{ secrets.username }} + password: ${{ secrets.password }} + server-dir: public_html/ + exclude: | + */config/development + */logs/log-*.php + !*/logs/index.html + */cache/* + !*/cache/index.html + !*/cache/.htaccess + + user_guide_src/build/* + user_guide_src/cilexer/build/* + user_guide_src/cilexer/dist/* + user_guide_src/cilexer/pycilexer.egg-info/* + + application/logs/* + !application/logs/index.html + !application/logs/.htaccess + /vendor/ + + application/config/custom_config.php + + node_modules + test + .sass-cache + package-lock.json + .gitattributes + ressources + .htaccess + .env + *.code-workspace + + scripts/*.zip + scripts/votes_individual/*.zip + scripts/architecture + scripts/update_dataset/backup/*.sql + + assets/opendata + assets/dataset_backup/general/*.sql + assets/imgs/deputes_original/ + assets/imgs/deputes_ogp/ + assets/imgs/deputes_webp/ + assets/imgs/deputes_nobg/ + assets/imgs/deputes_nobg_import/ + assets/imgs/deputes_nobg_webp/ + assets/imgs/posts/ + assets/imgs/captcha/*.jpg + assets/data/*.json + assets/data/professions/election_4/*.pdf + assets/data/professions/election_6/*.pdf + assets/data/*.txt + assets/css/bootstrap* \ No newline at end of file