Skip to content

Commit c67b88d

Browse files
committed
feat(ci): Add deployment
1 parent 28b3a68 commit c67b88d

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy:
10+
name: Deploy
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
steps:
15+
- uses: actions/checkout@v5
16+
- uses: actions/setup-node@v5
17+
with:
18+
node-version-file: .node-version
19+
- run: npm ci
20+
- run: node --run build
21+
- uses: SamKirkland/FTP-Deploy-Action@v4
22+
with:
23+
server: ${{ secrets.FTP_SERVER }}
24+
protocol: ftps
25+
username: ${{ secrets.FTP_USERNAME }}
26+
password: ${{ secrets.FTP_PASSWORD }}
27+
local-dir: ./docs/.vitepress/dist/
28+
server-dir: ${{ secrets.FTP_DIRECTORY }}

.github/workflows/ci.yml renamed to .github/workflows/lint.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
name: Continuous Integration
2-
on: [push]
1+
name: Lint
2+
3+
on:
4+
push:
35

46
jobs:
57
lint:
68
name: Lint
79
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
812
steps:
913
- uses: actions/checkout@v5
1014
- uses: actions/setup-node@v5

0 commit comments

Comments
 (0)