Skip to content

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

Fix(ops): Deploy to GH pages was not working

Jonathan ARNAULT703e8eebcd9b
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index ffff1ba5..7b36460c 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -10,6 +10,7 @@ concurrency:
permissions:
pages: write
+ contents: write
jobs:
deploy:
@@ -54,10 +55,10 @@ jobs:
run: npx supabase functions deploy
- name: 📡 Deploy GitHub pages
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
- git remote set-url origin https://git:${{ secrets.GITHUB_TOKEN }}@github.com/marmelab/atomic-crm.git
+ git remote set-url origin https://git:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}
git config --global user.email [email protected]
git config --global user.name github-actions-bot
npm run ghpages:deploy
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}