Skip to content

Change next urls to prod on push to main #58

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 24, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ jobs:
echo "Pulling latest changes..."
git pull origin ${{ github.ref_name }}

if [[ "${{ github.ref}}" == "refs/heads/main" ]]; then
echo "NEXT_PUBLIC_BACKEND_HOST=https://api.musiccpr.org" >> .env.production
echo "NEXTAUTH_URL=https://musiccpr.org" >> .env.production
fi

echo "Stopping and removing old container"
docker stop ${{ env.CONTAINER_NAME }}|| true
docker rm ${{ env.CONTAINER_NAME }}|| true
Expand Down