Skip to content

Commit

Permalink
deplay fix
Browse files Browse the repository at this point in the history
  • Loading branch information
idna001 committed Feb 2, 2024
1 parent 5edcb56 commit e8f4391
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy-ftp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
with:
node-version: '16'

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

- name: 🔨 Build Project
run: |
Expand All @@ -29,6 +29,6 @@ jobs:
- name: List output files
run: find build/ -type f -exec echo {} \;

- name: 📂 Sync files
- name: 📂 Sync files with rsync
run: |
lftp -c "open -u ${{ secrets.FTP_USERNAME }},${{ secrets.FTP_PASSWORD }} ${{ secrets.FTP_SERVER }} && mirror -R --only-newer --exclude-glob .git* --exclude .github/ ./build/ ./roulette"
rsync -av --delete --exclude='.git*' --exclude='.github/' ./build/ ${{ secrets.FTP_USERNAME }}@${{ secrets.FTP_SERVER }}:./roulette/

0 comments on commit e8f4391

Please sign in to comment.