name: CI on: push: branches: [ main ] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - run: yarn - run: yarn build - name: Deploy uses: appleboy/scp-action@master with: host: ${{ secrets.HOST }} username: ${{ secrets.USERNAME }} password: ${{ secrets.PASSWORD }} source: "dist/" target: "/var/www/papermar.io/html/" strip_components: 1