Skip to content

Commit d7f9c89

Browse files
committed
Change next urls to prod when pushing to main
1 parent 2b6fb07 commit d7f9c89

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/deploy.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ jobs:
4646
echo "Pulling latest changes..."
4747
git pull origin ${{ github.ref_name }}
4848

49+
if [[ "${{ github.ref}}" == "refs/heads/main" ]]; then
50+
echo "NEXT_PUBLIC_BACKEND_HOST=https://api.musiccpr.org" >> .env.production
51+
echo "NEXTAUTH_URL=https://musiccpr.org" >> .env.production
52+
fi
53+
4954
echo "Stopping and removing old container"
5055
docker stop ${{ env.CONTAINER_NAME }}|| true
5156
docker rm ${{ env.CONTAINER_NAME }}|| true

0 commit comments

Comments
 (0)