Skip to content

A full-featured CRM built with React, shadcn/ui, and Supabase.

Fix(ops): Deploy to remote repository was not working

Jonathan ARNAULT7e97fdffa7a7
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 6fb10622..8d3cbad7 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -25,7 +25,7 @@ jobs:
VITE_SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
VITE_SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }}
VITE_IS_DEMO: ${{ vars.VITE_IS_DEMO }}
- DEPLOY_REPO_URL: ${{ vars.DEPLOY_REPO_URL }}
+ DEPLOY_REPO_URL: 'https://git:${{ secrets.GITHUB_TOKEN }}@github.com/${{ vars.DEPLOY_REPO_REPOSITORY || ${GITHUB_REPOSITORY} }}'
steps:
- name: 📥 Checkout repo
@@ -63,7 +63,7 @@ jobs:
- name: 📡 Deploy GitHub pages
run: |
- git remote set-url origin https://git:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}
+ echo "Deploying to pages to ${DEPLOY_REPO_URL}"
git config --global user.email [email protected]
git config --global user.name github-actions-bot
npm run ghpages:deploy