Skip to content

Commit

Permalink
Branch-specific Vercel previews
Browse files Browse the repository at this point in the history
  • Loading branch information
Assios committed Aug 8, 2023
1 parent c45a1db commit 54648a0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deploy-to-vercel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ name: Deploy to Vercel
on:
push:
branches:
- master
- check-duplicates
- "**"

jobs:
deploy:
Expand Down Expand Up @@ -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 }}

1 comment on commit 54648a0

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for chessguessr ready!

✅ Preview
https://chessguessr-itwhd61gn-assios.vercel.app

Built with commit 54648a0.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.