From 404a4e82a95eb00a8dd67632cc9b693025ec74b0 Mon Sep 17 00:00:00 2001 From: SaketAnand Date: Fri, 6 Mar 2026 17:49:15 +0530 Subject: [PATCH] Update deployment workflow (main + master support + cleanup) --- .github/workflows/push-dappbundle.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/push-dappbundle.yml b/.github/workflows/push-dappbundle.yml index 543f252..6088c78 100644 --- a/.github/workflows/push-dappbundle.yml +++ b/.github/workflows/push-dappbundle.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - master jobs: build: @@ -27,10 +28,8 @@ jobs: echo "== Ensuring dappbundle repo exists ==" if [ ! -d "$BASE/dappbundle/.git" ]; then - echo "Cloning dappbundle..." git clone git@gitea.ranchimall.net:RanchiMall/dappbundle.git "$BASE/dappbundle" else - echo "Updating dappbundle..." cd "$BASE/dappbundle" git pull fi @@ -40,10 +39,16 @@ jobs: rm -rf "$BASE/dappbundle/$APP" git clone git@gitea.ranchimall.net:RanchiMall/$APP.git "$BASE/dappbundle/$APP" + echo "== Cleaning git metadata ==" + + cd "$BASE/dappbundle/$APP" + rm -rf .git .github .gitignore .gitattributes + cd "$BASE/dappbundle" + git config user.email "ranchimallfze@gmail.com" git config user.name "ranchimall" git add . - git commit -m "Auto-update $APP" || echo "No changes to commit" - git push \ No newline at end of file + git commit -m "Auto-update $APP" || echo "No changes" + git push \ No newline at end of file