Skip to content

Merge pull request #12 from RedBoardDev/fix-001 #11

Merge pull request #12 from RedBoardDev/fix-001

Merge pull request #12 from RedBoardDev/fix-001 #11

name: CD - send to production
on:
push:
branches:
- main
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies and build
run: |
npm install
CI=false npm run build
- name: Install lftp
run: sudo apt-get install -y lftp
- name: Deploy to FTP server
env:
FTP_SERVER: ${{ secrets.FTP_SERVER }}
FTP_USERNAME: ${{ secrets.FTP_USERNAME }}
FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }}
run: ./deploy.sh