I have pipelines enabled in my Bitbucket repository and I need to run Angular 2 build and deploy the dist folder (which gets created after the build command is executed) in my s
image: node:8.7.0
pipelines:
default:
- step:
name: Installation
caches:
- node
script:
- npm install
- step:
name: Building
script:
- npm install -g @angular/cli #need to install angular-cli to make build
- npm run build --aot
- step:
name: Deployment
script:
- apt-get update
- apt-get install ncftp
- ncftpput -v -u "$FTP_USERNAME" -p "$FTP_PASSWORD" -R $FTP_HOST $FTP_SITE_ROOT dist/*
- echo Finished uploading /dist files to $FTP_HOST$FTP_SITE_ROOT