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 }}