Skip to content

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

Fix(ops): GitHub pages were not pushed as expected

Jonathan ARNAULT17d54287af60
diff --git a/scripts/ghpages-deploy.mjs b/scripts/ghpages-deploy.mjs
index 2e88b589..23e2f123 100644
--- a/scripts/ghpages-deploy.mjs
+++ b/scripts/ghpages-deploy.mjs
@@ -1,7 +1,17 @@
import * as ghpages from 'gh-pages';
-ghpages.publish('dist', { branch: 'gh-pages' }, function (err) {
- if (err) {
- console.error('Failed to deploy to GitHub Pages', err);
+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) {
+ console.error('Failed to deploy to GitHub Pages', err);
+ }
}
-});
+);