diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 67bc9c5..7d6289d 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -16,15 +16,17 @@ jobs: - 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 }} # + + - name: Deploy + uses: easingthemes/ssh-deploy@main + with: + SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_PRIVATE_KEY }} + ARGS: "-vzrli" + SOURCE: "zig-out/" + REMOTE_HOST: ${{ secrets.DEPLOY_HOST }} + REMOTE_USER: ${{ secrets.DEPLOY_USER }} + REMOTE_PORT: ${{ secrets.DEPLOY_PORT }} + TARGET: "./staging/pulls/${{ github.event.number }}" - uses: mshick/add-pr-comment@v1 with: