From 3c482eff6e1a7d481b2be90e22ef2c651181e5a6 Mon Sep 17 00:00:00 2001 From: Mark Sinclair Date: Wed, 6 Sep 2023 18:07:22 +0100 Subject: [PATCH] Docs: add prod deploy settings --- .github/workflows/cd-docs.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cd-docs.yml b/.github/workflows/cd-docs.yml index 917a115064..e775e0c601 100644 --- a/.github/workflows/cd-docs.yml +++ b/.github/workflows/cd-docs.yml @@ -87,9 +87,14 @@ jobs: run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} working-directory: dist/docs - - name: Build Project Artifacts + - name: Build Project Artifacts (preview) + if: github.ref != 'refs/heads/master' run: vercel build --token=${{ secrets.VERCEL_TOKEN }} working-directory: dist/docs + - name: Build Project Artifacts (production) + if: github.ref == 'refs/heads/master' + run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} + working-directory: dist/docs - name: Deploy Project Artifacts to Vercel (preview) if: github.ref != 'refs/heads/master'