Skip to content

Commit 62c8479

Browse files
committed
ci: Finalize and correct deployment workflow
1 parent cd7f1de commit 62c8479

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# FINAL VERSION: .github/workflows/deploy.yml
2+
3+
name: Build and Deploy Docusaurus Site
4+
5+
on:
6+
push:
7+
branches:
8+
- main
9+
10+
jobs:
11+
build-and-deploy:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout Code
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: '18'
21+
cache: 'npm'
22+
23+
- name: Install and Build
24+
run: |
25+
npm install
26+
npm run build
27+
28+
- name: Deploy via FTPS
29+
uses: SamKirkland/[email protected]
30+
with:
31+
server: ${{ secrets.FTP_HOST }}
32+
username: ${{ secrets.FTP_USER }}
33+
password: ${{ secrets.FTP_PASS }}
34+
local-dir: ./build/
35+
server-dir: /dev.objectbox.io/ #<-- This is the updated path
36+
protocol: ftps
37+
port: 21
38+
security: strict

0 commit comments

Comments
 (0)