A full-featured CRM built with React, shadcn/ui, and Supabase.
Fix(ops): Github pages were not pushed as expected
Jonathan ARNAULT8112f24000c0
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.ymlindex 1b500089..b9e59381 100644--- a/.github/workflows/deploy.yml+++ b/.github/workflows/deploy.yml@@ -8,6 +8,9 @@ concurrency:group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}cancel-in-progress: true+permissions:+ pages: write+jobs:deploy:name: π Deploy@@ -48,4 +51,8 @@ jobs:run: npx supabase functions deploy- name: π‘ Deploy GitHub pages- run: npm run ghpages:deploy+ run: |+ git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@$GITHUB_SERVER_URL/$GITHUB_REPOSITORY+ git config --global user.email ${{ vars.GIT_USER_NAME }}+ git config --global user.name ${{ vars.GIT_USER_EMAIL }}+ npm run ghpages:deploydiff --git a/README.md b/README.mdindex b528fcbd..f1444a17 100644--- a/README.md+++ b/README.md@@ -99,4 +99,10 @@ have to create the following secrets:SUPABASE_ACCESS_TOKEN: Your personal access token, can be found at https://supabase.com/dashboard/account/tokensSUPABASE_DB_PASSWORD: Your supabase database passwordSUPABASE_PROJECT_ID: Your supabase project id+```++You will also need to configure the following environment variables to deploy to GH pages:+```bash+GIT_USER_NAME: The deploy account's name+GIT_USER_EMAIL: The deploy user's email```\ No newline at end of filediff --git a/scripts/ghpages-deploy.mjs b/scripts/ghpages-deploy.mjsindex 23e2f123..65adea8f 100644--- a/scripts/ghpages-deploy.mjs+++ b/scripts/ghpages-deploy.mjs@@ -4,10 +4,6 @@ ghpages.publish('dist',{branch: 'gh-pages',- user: {- name: process.env.GIT_USER_NAME || 'Marmebot',- email: process.env.GIT_USER_EMAIL || '[email protected]',- },},function (err) {if (err) {