Skip to content

Commit 16ed5fd

Browse files
Add GitHub Actions workflow for deploying site
1 parent 5b00a86 commit 16ed5fd

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/build.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
name: 🚀 Deploy website on push
8+
jobs:
9+
web-deploy:
10+
name: 🎉 Deploy
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: 🚚 Get latest code
14+
uses: actions/checkout@v4
15+
16+
- name: Use Node.js 22
17+
uses: actions/setup-node@v2
18+
with:
19+
node-version: '22'
20+
21+
- name: 🔨 Build Project
22+
run: |
23+
npm install
24+
npm run build
25+
26+
- name: 📂 Sync files
27+
uses: SamKirkland/FTP-Deploy-Action@v4.3.5
28+
with:
29+
server: reference8.com
30+
username: ${{ secrets.SERVER_USERNAME }}
31+
password: ${{ secrets.SERVER_PASSWORD }}
32+
port: 65002
33+
server-dir: /domains/reference8.com/public_html/

0 commit comments

Comments
 (0)