-
-
Notifications
You must be signed in to change notification settings - Fork 7
40 lines (38 loc) · 1.07 KB
/
deploy-docs.yaml
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
name: Build & Deploy docs
on:
push:
branches:
- main
paths:
- docs/**
jobs:
deploy:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- uses: oven-sh/setup-bun@v1
- uses: actions/cache@v4
with:
path: |
~/.npm
${{ github.workspace }}/docs/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/bun.lockb') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/bun.lockb') }}-
- run: |
cd docs
bun install
bun run build
cd ..
- uses: SamKirkland/[email protected]
with:
server: ${{ secrets.GRAPP_FTP_SERVER_URL }}
username: ${{ secrets.GRAPP_FTP_USERNAME }}
password: ${{ secrets.GRAPP_FTP_PASSWORD }}
local-dir: './docs/out/'
server-dir: 'nui-components/'