Skip to content

Commit 38f1299

Browse files
authored
Create deploy workflow
1 parent 98e9f3c commit 38f1299

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/deploy

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# This is a workflow for github - ftp host synchronization
2+
on:
3+
push:
4+
branches: [ main ]
5+
6+
name: 🚀 Deploy website on push
7+
jobs:
8+
web-deploy:
9+
name: 🎉 Deploy
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: 🚚 Get latest code
13+
uses: actions/checkout@v2
14+
- name: Current repo dir
15+
run: |
16+
echo test the checkout action,
17+
ls -a
18+
19+
- name: 📂 Sync files
20+
uses: SamKirkland/FTP-Deploy-Action@4.1.0
21+
with:
22+
server: ${{ secrets.ftp_server }}
23+
server-dir: ./portfolio/
24+
dangerous-clean-slate: true
25+
username: ${{ secrets.ftp_user }}
26+
password: ${{ secrets.ftp_password }}
27+
local-dir: ./build/

0 commit comments

Comments
 (0)