name: Render PR Preview on: [pull_request] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: submodules: 'recursive' - name: Setup Zig uses: goto-bus-stop/setup-zig@v2 with: version: master - name: Render website run: | zig build # - name: Deploy preview with SCP # uses: horochx/deploy-via-scp@1.1.0 # with: # local: render/* # remote: 'zeg-pr/${{ github.event.number }}/' # ensureRemote: true # user: generic-ci # host: random-projects.net # key: ${{ secrets.WEBSITE_PRIVATE_KEY }} # - uses: mshick/add-pr-comment@v1 with: message: | Heya! You can check out a preview of your PR at [staging.microzig.tech/pulls/${{ github.event.number }}](https://staging.microzig.tech/pulls/${{ github.event.number }}/)! repo-token: ${{ secrets.GITHUB_TOKEN }} repo-token-user-login: 'github-actions[bot]' # The user.login for temporary GitHub tokens allow-repeats: false # This is the default