name: Buid and Deploy on: push: branches: [ master ] pull_request: branches: [ master ] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Use Node.js uses: actions/setup-node@v2.1.2 with: node-version: '12.x' - run: npm install - run: npm run build - name: FTP Deploy uses: SamKirkland/FTP-Deploy-Action@4.0.0 with: server: ${{ secrets.FTP_HOST }} username: ${{ secrets.FTP_USERNAME }} password: ${{ secrets.FTP_PASSWORD }} port: 21 protocol: ftps security: strict state-name: ../.ftp-deploy-sync-state.json local-dir: ./dist/itsfiveoclockwhere/