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

Commit 5bdeb11

Browse files
committed
ci(workflow): deployment of dev branch
1 parent 3e54b12 commit 5bdeb11

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/dev-release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Deploy to development 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+
12+
- name: Set up Node.js
13+
uses: actions/setup-node@v4
14+
with:
15+
node-version: "22"
16+
17+
- name: Install dependencies
18+
run: npm install
19+
20+
- name: Build the site
21+
run: npm run build:prod
22+
23+
- name: Deploy to FTP
24+
uses: SamKirkland/[email protected]
25+
with:
26+
server: ${{ secrets.FTP_SERVER }}
27+
username: ${{ secrets.FTP_USERNAME }}
28+
password: ${{ secrets.FTP_PASSWORD }}
29+
local-dir: ./dist/
30+
server-dir: www/map/

0 commit comments

Comments
 (0)