name: deploy on: push: branches: - master jobs: build: name: build and deploy runs-on: ubuntu-latest steps: - uses: actions/checkout@2.3.1 - name: Build Gatsby Site uses: jzweifel/gatsby-cli-github-action@1.0.0 with: gatsby-arg: build - name: Deply via ssh uses: appleboy/scp-action@0.0.1 with: host: ${{ secrets.HOST }} username: ${{ secrets.WEBMASTER_USERNAME }} password: ${{ secrets.WEBMASTER_PASSWORD }} source: "public/*" target: "html/"