From d87a2fbf0f0a091e82dea02350fd410c37ecf147 Mon Sep 17 00:00:00 2001 From: kaushal gorasiya Date: Mon, 8 Dec 2025 10:16:53 +0530 Subject: [PATCH 1/4] Enhance CI workflow with versioning and S3 upload --- .github/workflows/prod.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/prod.yml b/.github/workflows/prod.yml index 8c828e0..a2eda4f 100644 --- a/.github/workflows/prod.yml +++ b/.github/workflows/prod.yml @@ -33,3 +33,26 @@ jobs: REMOTE_PORT: '65002' TARGET: domains/codedthemes.com/public_html/demos/admin-templates/datta-able/bootstrap/free EXCLUDE: '/node_modules/' + + - name: 📦 Create version ZIP + run: | + zip -r "datta-bootstrap-v${VERSION}.zip" . \ + -x ".git/*" \ + -x ".github/workflows/*" \ + -x ".gitignore" \ + -x "package.json" \ + -x "package-lock.json" \ + -x "node_modules/*" \ + -x "dist/*" + + - name: 🔑 Configure AWS Credentials + uses: aws-actions/configure-aws-credentials@v4 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: us-west-2 + + - name: 🚀 Upload ZIP to S3 + run: | + aws s3 cp "datta-bootstrap-v${VERSION}.zip" \ + "s3://${{ secrets.AWS_S3_BUCKET }}/Datta/Bootstrap/datta-bootstrap-v${VERSION}.zip" From 47ecd68f411b60420234992e36b558b729ace427 Mon Sep 17 00:00:00 2001 From: kaushal gorasiya Date: Mon, 8 Dec 2025 11:00:20 +0530 Subject: [PATCH 2/4] name add --- .github/workflows/prod.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/prod.yml b/.github/workflows/prod.yml index a2eda4f..a850f58 100644 --- a/.github/workflows/prod.yml +++ b/.github/workflows/prod.yml @@ -36,7 +36,7 @@ jobs: - name: 📦 Create version ZIP run: | - zip -r "datta-bootstrap-v${VERSION}.zip" . \ + zip -r "datta-able-bootstrap-v${VERSION}.zip" . \ -x ".git/*" \ -x ".github/workflows/*" \ -x ".gitignore" \ @@ -54,5 +54,5 @@ jobs: - name: 🚀 Upload ZIP to S3 run: | - aws s3 cp "datta-bootstrap-v${VERSION}.zip" \ - "s3://${{ secrets.AWS_S3_BUCKET }}/Datta/Bootstrap/datta-bootstrap-v${VERSION}.zip" + aws s3 cp "datta-able-bootstrap-v${VERSION}.zip" \ + "s3://${{ secrets.AWS_S3_BUCKET }}/DattaAble/Bootstrap/datta-able-bootstrap-v${VERSION}.zip" From c24599a3f1e0f51258d64f4a7075b45d25ffda9e Mon Sep 17 00:00:00 2001 From: kaushal gorasiya Date: Mon, 8 Dec 2025 14:12:26 +0530 Subject: [PATCH 3/4] add version --- .github/workflows/prod.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/prod.yml b/.github/workflows/prod.yml index a850f58..5324019 100644 --- a/.github/workflows/prod.yml +++ b/.github/workflows/prod.yml @@ -32,7 +32,11 @@ jobs: REMOTE_USER: u106957989 REMOTE_PORT: '65002' TARGET: domains/codedthemes.com/public_html/demos/admin-templates/datta-able/bootstrap/free - EXCLUDE: '/node_modules/' + EXCLUDE: '/node_modules/ + + - name: Read version + id: version + run: echo "VERSION=$(jq -r .version full-version/package.json)" >> $GITHUB_ENV - name: 📦 Create version ZIP run: | From 9a428ceb85739fc49b68b88dd8424bd2596222e0 Mon Sep 17 00:00:00 2001 From: Dikshit Moradiya <106728438+ct-dixit@users.noreply.github.com> Date: Mon, 8 Dec 2025 12:37:30 +0000 Subject: [PATCH 4/4] prod yml update --- .github/workflows/prod.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/prod.yml b/.github/workflows/prod.yml index 5324019..c052b92 100644 --- a/.github/workflows/prod.yml +++ b/.github/workflows/prod.yml @@ -20,7 +20,7 @@ jobs: steps: - name: 🚚 Get latest code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: 📂 Deploy to Server uses: easingthemes/ssh-deploy@v4 @@ -36,7 +36,7 @@ jobs: - name: Read version id: version - run: echo "VERSION=$(jq -r .version full-version/package.json)" >> $GITHUB_ENV + run: echo "VERSION=$(jq -r .version package.json)" >> $GITHUB_ENV - name: 📦 Create version ZIP run: | @@ -44,10 +44,7 @@ jobs: -x ".git/*" \ -x ".github/workflows/*" \ -x ".gitignore" \ - -x "package.json" \ - -x "package-lock.json" \ - -x "node_modules/*" \ - -x "dist/*" + -x "node_modules/*" - name: 🔑 Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v4