Skip to content

Commit

Permalink
Merge pull request #13 from idna001/feature-bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
idna001 authored Feb 1, 2024
2 parents e255efe + b17a014 commit 00cd73c
Showing 1 changed file with 24 additions and 25 deletions.
49 changes: 24 additions & 25 deletions .github/workflows/deploy-ftp.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,34 @@
on:
pull_request:
types: [closed]
push:
branches:
- master

name: πŸš€FTP Deploy website

jobs:
web-deploy:
name: πŸŽ‰ Deploy
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v2
web-deploy:
name: πŸŽ‰ Deploy
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v2

- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: '16'

- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install lftp
run: sudo apt-get install lftp

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

- name: πŸ“‚ Sync files
uses: airvzxf/ftp-deployment-action@latest
with:
server: ${{ secrets.FTP_SERVER }}
user: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
remote_dir: ./roulette
- name: πŸ“‚ Sync files
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"

0 comments on commit 00cd73c

Please sign in to comment.