Skip to content

Commit

Permalink
Merge pull request #17 from idna001/deploy-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
idna001 authored Feb 6, 2024
2 parents 35864f3 + 30b73bc commit a1edcec
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/deploy-ftp.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
on:
push:
pull_request:
types: [closed]
branches:
- master

name: 🚀FTP Deploy website

jobs:
Expand All @@ -18,17 +18,19 @@ jobs:
with:
node-version: '16'

- name: Install rsync
run: sudo apt-get install rsync

- name: 🔨 Build Project
run: |
npm install
npm run build
- name: List output files
run: find build/ -type f -exec echo {} \;
run: find build/ -print

- name: 📂 Sync files with rsync
run: |
rsync -av --delete --exclude='node_modules' --exclude='.git*' --exclude='.github/' ./build/ ${{ secrets.FTP_USERNAME }}:${{ secrets.FTP_PASSWORD }}@${{ secrets.FTP_SERVER }}:./roulette/
- name: 📂 Sync files
uses: airvzxf/ftp-deployment-action@latest
with:
server: ${{ secrets.FTP_SERVER }}
user: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
local_dir: ./build/
delete: "false"

0 comments on commit a1edcec

Please sign in to comment.