From b406f10e29f2afc022f03b8daf8a16a4baadc194 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20=22xq=22=20Quei=C3=9Fner?= Date: Tue, 4 Oct 2022 18:12:35 +0200 Subject: [PATCH] Implements PR rendering in staging area. --- .github/workflows/pr.yml | 38 +++++++++++++++++--------------------- 1 file changed, 17 insertions(+), 21 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 4ba3bdb..f559ef1 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -5,26 +5,22 @@ on: [pull_request] jobs: build: runs-on: ubuntu-latest - steps: - - name: test + - uses: actions/checkout@v2 + with: + submodules: 'recursive' + - name: Setup Zig + uses: goto-bus-stop/setup-zig@v1 + with: + version: master + - name: Render website run: | - jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH" - # - uses: actions/checkout@v2 - # with: - # submodules: "recursive" - # - name: Setup Zig - # uses: goto-bus-stop/setup-zig@v1 - # with: - # version: master - #- name: Render website - # run: | - # zig build gen - # - name: Deploy preview with SCP - # uses: noobly314/deploy-with-scp@v1 - # with: - # src: render/* - # dest: zeg/ - # username: generic-ci - # server-ip: random-projects.net - # ssh-key: ${{ secrets.WEBSITE_PRIVATE_KEY }} # + zig build gen + - name: Deploy preview with SCP + uses: noobly314/deploy-with-scp@v1 + with: + src: render + dest: 'zeg-pr/${{ github.event.number }}' + username: generic-ci + server-ip: random-projects.net + ssh-key: ${{ secrets.WEBSITE_PRIVATE_KEY }} #