From e83202fa021eec6ee44465b85631452d1924aff3 Mon Sep 17 00:00:00 2001 From: Michael Taranto Date: Mon, 25 Nov 2024 12:01:03 +1100 Subject: [PATCH] site: Fix Playroom Preview deployments --- .github/workflows/release.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2f925a81cf8..7d189687f20 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,6 +32,7 @@ jobs: run: pnpm i - name: Create Release Pull Request or Publish to npm + id: changesets uses: changesets/action@v1 with: version: pnpm run version @@ -41,17 +42,19 @@ jobs: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Build site + if: steps.changesets.outputs.published == 'true' run: pnpm build:site env: BASE_NAME: /braid-design-system - name: Deploy site + if: steps.changesets.outputs.published == 'true' uses: JamesIves/github-pages-deploy-action@881db5376404c5c8d621010bcbec0310b58d5e29 # 4.6.0 with: token: ${{ secrets.GITHUB_TOKEN }} folder: ./site/dist # Preserve the preview deployment folder and custom grad-connection site clean-exclude: | - preview/* - grad-connection/* + /preview/* + /grad-connection/* single-commit: true