Skip to content

Commit 24dead0

Browse files
authored
Add FTP deployment workflow for main branch
This workflow deploys code to a web server via FTP when changes are pushed to the main branch.
1 parent beebc32 commit 24dead0

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Deploy to Web Server via FTP
2+
3+
on:
4+
push:
5+
branches:
6+
- main # mainブランチにpushされたときに実行
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v3
15+
16+
- name: Deploy to FTP server
17+
uses: SamKirkland/FTP-Deploy-Action@v4.3.4
18+
with:
19+
server: ${{ secrets.FTP_SERVER }}
20+
username: ${{ secrets.FTP_USERNAME }}
21+
password: ${{ secrets.FTP_PASSWORD }}
22+
server-dir: /radio/QSL_card_designer/ # デプロイ先のディレクトリ(必要に応じて変更)
23+
exclude: |
24+
**/.git*
25+
**/.git*/**
26+
**/node_modules/**
27+
.github/**

0 commit comments

Comments
 (0)