From 86489efd892dd7a99282b413eadff40c19cfef3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20=22xq=22=20Quei=C3=9Fner?= Date: Fri, 23 Feb 2024 19:31:16 +0100 Subject: [PATCH] Adds deployment test. --- .github/workflows/pr.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) 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: