From 54648a02912c04eb27f9691bb67747e2fe8afa5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Steinskog?= Date: Tue, 8 Aug 2023 21:13:55 +0200 Subject: [PATCH] Branch-specific Vercel previews --- .github/workflows/deploy-to-vercel.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-to-vercel.yml b/.github/workflows/deploy-to-vercel.yml index d0da45c..b0ea4b0 100644 --- a/.github/workflows/deploy-to-vercel.yml +++ b/.github/workflows/deploy-to-vercel.yml @@ -3,8 +3,7 @@ name: Deploy to Vercel on: push: branches: - - master - - check-duplicates + - "**" jobs: deploy: @@ -34,7 +33,9 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} - name: Alias deployment to custom domain + if: github.ref == 'refs/heads/master' run: vercel alias ${{ steps.vercel-deployment.outputs.deployment-url }} chessguessr.com --token ${{ secrets.VERCEL_TOKEN }} - name: Alias deployment to www subdomain + if: github.ref == 'refs/heads/master' run: vercel alias ${{ steps.vercel-deployment.outputs.deployment-url }} www.chessguessr.com --token ${{ secrets.VERCEL_TOKEN }}