-
Notifications
You must be signed in to change notification settings - Fork 6
46 lines (44 loc) · 1.09 KB
/
deploy.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
name: deploy
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
- name: Install Node dependencies
run: npm i --package-lock=false
- name: Build assets
run: npm run-script build
- name: Install PHP dependencies
uses: php-actions/composer@v6
with:
php_version: 8.2
php_extensions: gd
- name: Deploy to FTP server
uses: SamKirkland/FTP-Deploy-Action@v4.3.5
with:
server: lynx.mythic-beasts.com
server-dir: www/bradshaws.guide/
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
protocol: ftps
timeout: 60000
exclude: |
**/.git*
**/.git*/**
**/node_modules/**