2024-11-01 10:33:28 #6
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 php directory on push with FTP | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- "php/**" | |
jobs: | |
deploy: | |
name: 🎉 Deploy to langnang.byethost32.com | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🚚 Get latest code | |
uses: actions/checkout@v2 | |
# - name: Use Node.js 14.x | |
# uses: actions/setup-node@v2 | |
# with: | |
# node-version: 14.x | |
# - name: Install && Build | |
# run: | | |
# cd nodejs/vue2-element-ui | |
# yarn install | |
# npm run build | |
# - name: Install composer dependencies | |
# run: cd composer/lumen8-modules && composer install | |
- name: 📂 Sync files | |
uses: SamKirkland/[email protected] | |
with: | |
# ftp server | |
server: ftpupload.net | |
# ftp username | |
username: b32_28202196 | |
# ftp password | |
password: ${{ secrets.ftp_password }} | |
# local dir | |
local-dir: ./php/ | |
# Path to upload to on the server. Must end with trailing slash / | |
server-dir: /htdocs/softwares/php/ | |
# File to Exclude | |
exclude: | | |
**/.git* | |
**/.git*/** | |
**/.github*/** | |
**/node_modules/** |