-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (44 loc) · 1.28 KB
/
php-byethost.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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/**