Skip to content

2024-10-31 19:02:58

2024-10-31 19:02:58 #4

Workflow file for this run

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/**