From 02c4b23065e7916a532254fa83ba29bb306cc4e5 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 26 Mar 2024 11:00:17 +0100 Subject: [PATCH] ci: fix docs deployment Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- .github/workflows/docs_publish.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docs_publish.yml b/.github/workflows/docs_publish.yml index ab426e5ff..c3a71a23b 100644 --- a/.github/workflows/docs_publish.yml +++ b/.github/workflows/docs_publish.yml @@ -38,11 +38,11 @@ jobs: cachixToken: ${{ secrets.CACHIX_AUTH_TOKEN }} - name: Build production website - if: (!env.PREVIEW) + if: env.PREVIEW == 'false' run: | nix build .#contrast-docs - name: Publish docs to GitHub Pages - if: (!env.PREVIEW) + if: env.PREVIEW == 'false' uses: JamesIves/github-pages-deploy-action@65b5dfd4f5bcd3a7403bbc2959c144256167464e # v4.5.0 with: folder: ./result @@ -51,11 +51,11 @@ jobs: force: false - name: Build preview website - if: env.PREVIEW + if: env.PREVIEW == 'true' run: | nix build --impure --expr "(builtins.getFlake \"git+file://$(pwd)?shallow=1\").outputs.legacyPackages.x86_64-linux.contrast-docs.override { docusaurusBaseUrl = \"contrast/pr-preview/pr-${{ github.event.number }}\"; }" - name: Deploy preview - if: env.PREVIEW + if: env.PREVIEW == 'true' uses: rossjrw/pr-preview-action@f31d5aa7b364955ea86228b9dcd346dc3f29c408 # v1 with: source-dir: ./result