Skip to content

Commit 0805cee

Browse files
committed
test
1 parent b8b212e commit 0805cee

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,14 @@ jobs:
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

0 commit comments

Comments
 (0)