Skip to content
This repository was archived by the owner on Jun 1, 2025. It is now read-only.

Commit 3bd6e3a

Browse files
committed
deploy: development workflow
1 parent 44c2815 commit 3bd6e3a

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/development.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Deploy to FTP
2+
on:
3+
push:
4+
branches: ["dev"]
5+
jobs:
6+
deploy:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout the repository
10+
uses: actions/checkout@v4
11+
- name: Set up Node.js
12+
uses: actions/setup-node@v4
13+
with:
14+
node-version: "22"
15+
- name: Install dependencies
16+
run: npm install
17+
- name: Build the site
18+
run: npm run build:prod
19+
- name: Deploy to FTP
20+
uses: SamKirkland/[email protected]
21+
with:
22+
server: ${{ secrets.FTP_SERVER }}
23+
username: ${{ secrets.FTP_USERNAME }}
24+
password: ${{ secrets.FTP_PASSWORD }}
25+
local-dir: ./dist/
26+
server-dir: www/map/

0 commit comments

Comments
 (0)