Skip to content

Merge pull request #16 from RedBoardDev/dependabot/npm_and_yarn/http-… #15

Merge pull request #16 from RedBoardDev/dependabot/npm_and_yarn/http-…

Merge pull request #16 from RedBoardDev/dependabot/npm_and_yarn/http-… #15

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