-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.05 KB
/
deploy.yml
File metadata and controls
50 lines (42 loc) · 1.05 KB
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
47
48
49
50
name: deploy
on:
push:
branches:
- main
paths:
- 'app/**'
- 'content/**'
- 'public/**'
- 'nuxt.config.ts'
- 'content.config.ts'
- 'package.json'
- 'pnpm-lock.yaml'
- 'tsconfig.json'
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Install Node
uses: actions/setup-node@v6
with:
node-version: 22
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Generate static site
run: pnpm generate
- name: Deploy via FTP
uses: SamKirkland/FTP-Deploy-Action@v4.3.6
with:
server: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
local-dir: ./.output/public/
server-dir: ./httpdocs/