File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 9898 - name : Deploy to Heroku
9999 if : github.ref == 'refs/heads/main' && success()
100100 env :
101- HEROKU_API_KEY : ${{ secrets.HEROKU_API_KEY }}
101+ HEROKU_API_KEY : ${{ secrets.HEROKU_API_KEY }} # Ensure you have this secret set in GitHub
102102 run : |
103103 echo "Adding Heroku remote..."
104104 git remote add heroku https://apikey:${{ secrets.HEROKU_API_KEY }}@git.heroku.com/gymero.git
105+ echo "Committing built frontend..."
106+ git config user.name "CI/CD Pipeline"
107+ git config user.email "[email protected] " 108+ git add server/public
109+ git commit -m "Include frontend build artifacts [skip ci]" || echo "No changes to commit"
105110 echo "Pushing to Heroku..."
106- git push heroku main --force
111+ git push heroku main --force # Ensure you are pushing the right branch
You can’t perform that action at this time.
0 commit comments