This is an automated email from the ASF dual-hosted git repository.

kranti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iggy-website.git

commit 7c7d81960e11cb6131c77e8ef5ccdd8503fe2cd8
Author: kparisa <[email protected]>
AuthorDate: Sat Jul 12 18:02:38 2025 -0500

    update build and deploy configs
---
 .asf.yaml                    | 11 ++++++-----
 .github/workflows/deploy.yml | 17 ++++++++++++++---
 .github/workflows/stage.yml  | 21 ++++++++++++++++-----
 static/.asf.yaml             | 11 ++++++-----
 4 files changed, 42 insertions(+), 18 deletions(-)

diff --git a/.asf.yaml b/.asf.yaml
index e0955275b..d26e5753c 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -22,16 +22,17 @@ collaborators:
   - username: landingpro
     permission: write
   
+publish:
+  whoami: asf-site
+
 # Staging and publishing profile:
 staging:
   profile: ~
-  whoami: asf-staged-site
-
-publish:
-  whoami: asf-site
+  whoami: asf-staging
+  url: https://iggy.staged.apache.org/
 
 notifications:
   commits: [email protected]
   issues: [email protected]
   pullrequests: [email protected]
-  discussions: [email protected]
+  discussions: [email protected]
\ No newline at end of file
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 23d4c1a0c..37cc6fa72 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -12,18 +12,24 @@ jobs:
     steps:
       - name: Checkout Repository
         uses: actions/checkout@v4
+        with:
+          fetch-depth: 0  # Fetch full history for accurate commits
 
       - name: Install Dependencies
         run: |
           npm install
 
+      - name: Clean Build Directory
+        run: |
+          rm -rf ./build
+  
       - name: Build Apache Iggy Website
         run: |
-          npm run build
+          npm run build --clean
 
       - name: Copy ASF config
         run: |
-          cp .asf.yaml build/.asf.yaml  # Ensure .asf.yaml is inside build 
directory
+          cp .asf.yaml ./build/.asf.yaml  # Ensure .asf.yaml is inside build 
directory
 
       # Publish to asf-site for production
       - name: Publish Iggy Website to asf-site
@@ -31,5 +37,10 @@ jobs:
         uses: peaceiris/actions-gh-pages@v4
         with:
           github_token: ${{ secrets.GITHUB_TOKEN }}
+          publish_branch: asf-site
           publish_dir: ./build
-          publish_branch: asf-site
\ No newline at end of file
+          destination_dir: ./
+          force_orphan: true
+          user_name: 'github-actions[bot]'
+          user_email: 'github-actions[bot]@users.noreply.github.com'
+          commit_message: 'Deploy website from main branch'
\ No newline at end of file
diff --git a/.github/workflows/stage.yml b/.github/workflows/stage.yml
index e250ca2ad..03b04905a 100644
--- a/.github/workflows/stage.yml
+++ b/.github/workflows/stage.yml
@@ -12,24 +12,35 @@ jobs:
     steps:
       - name: Checkout Repository
         uses: actions/checkout@v4
+        with:
+          fetch-depth: 0  # Fetch full history for accurate commits
 
       - name: Install Dependencies
         run: |
           npm install
 
+      - name: Clean Build Directory
+        run: |
+          rm -rf ./build
+
       - name: Build Apache Iggy Website
         run: |
-          npm run build
+          npm run build --clean
 
       - name: Copy ASF config
         run: |
-          cp .asf.yaml build/.asf.yaml  # Ensure .asf.yaml is inside build 
directory
+          cp .asf.yaml ./build/.asf.yaml  # Ensure .asf.yaml is inside build 
directory
 
-      # Publish to asf-staged-site for development/staging
-      - name: Publish Iggy Website to asf-staged-site
+      # Publish to asf-staging for development/staging
+      - name: Publish Iggy Website to asf-staging
         if: github.event_name == 'push' && github.ref == 'refs/heads/staging'
         uses: peaceiris/actions-gh-pages@v4
         with:
           github_token: ${{ secrets.GITHUB_TOKEN }}
+          publish_branch: asf-staging
           publish_dir: ./build
-          publish_branch: asf-staged-site
\ No newline at end of file
+          destination_dir: ./
+          force_orphan: true
+          user_name: 'github-actions[bot]'
+          user_email: 'github-actions[bot]@users.noreply.github.com'
+          commit_message: 'Deploy staging website from staging branch'
\ No newline at end of file
diff --git a/static/.asf.yaml b/static/.asf.yaml
index 5f541ebcb..7ea6c2378 100644
--- a/static/.asf.yaml
+++ b/static/.asf.yaml
@@ -14,15 +14,16 @@ github:
 collaborators:
   - username: landingpro
     permission: write
-  
-# Staging and publishing profile:
-staging:
-  profile: ~
-  whoami: asf-staged-site
 
 publish:
   whoami: asf-site
 
+# Staging and publishing profile:
+staging:
+  profile: ~
+  whoami: asf-staging
+  url: https://iggy.staged.apache.org/
+
 notifications:
   commits: [email protected]
   issues: [email protected]

Reply via email to