Skip to content

Commit

Permalink
ci: fix docs deployment
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Meyer <[email protected]>
  • Loading branch information
katexochen committed Mar 26, 2024
1 parent 806394c commit 02c4b23
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/docs_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 02c4b23

Please sign in to comment.