Skip to content

Merge pull request #14 from idna001/deploy-ci #14

Merge pull request #14 from idna001/deploy-ci

Merge pull request #14 from idna001/deploy-ci #14

Workflow file for this run

on:
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
- name: Use Node.js 16
uses: actions/setup-node@v2
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 {} \;
- name: ๐Ÿ“‚ Sync files with rsync
run: |
rsync -av --delete --exclude='node_modules' --exclude='.git*' --exclude='.github/' ./build/ ${{ secrets.FTP_USERNAME }}@${{ secrets.FTP_SERVER }}:./roulette/