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


The following commit(s) were added to refs/heads/main by this push:
     new d13faff44 Configure Staging Website and grant write access to 
landingpro
d13faff44 is described below

commit d13faff4420d3ee321a25f3a747f9a03cf07d63a
Author: kparisa <[email protected]>
AuthorDate: Sat Jul 12 13:24:46 2025 -0500

    Configure Staging Website and grant write access to landingpro
---
 .github/workflows/stage.yml | 35 +++++++++++++++++++++++++++++++++++
 static/.asf.yaml            |  9 +++++++++
 2 files changed, 44 insertions(+)

diff --git a/.github/workflows/stage.yml b/.github/workflows/stage.yml
new file mode 100644
index 000000000..e250ca2ad
--- /dev/null
+++ b/.github/workflows/stage.yml
@@ -0,0 +1,35 @@
+name: Deploy Apache Iggy Staging Website
+
+on:
+  push:
+    branches:
+      - staging  # Runs when you push to the staging branch
+  workflow_dispatch:  # Allows manual triggering
+
+jobs:
+  publish:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout Repository
+        uses: actions/checkout@v4
+
+      - name: Install Dependencies
+        run: |
+          npm install
+
+      - name: Build Apache Iggy Website
+        run: |
+          npm run build
+
+      - name: Copy ASF config
+        run: |
+          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
+        if: github.event_name == 'push' && github.ref == 'refs/heads/staging'
+        uses: peaceiris/actions-gh-pages@v4
+        with:
+          github_token: ${{ secrets.GITHUB_TOKEN }}
+          publish_dir: ./build
+          publish_branch: asf-staged-site
\ No newline at end of file
diff --git a/static/.asf.yaml b/static/.asf.yaml
index 0aeb7d296..5f541ebcb 100644
--- a/static/.asf.yaml
+++ b/static/.asf.yaml
@@ -11,6 +11,15 @@ github:
     merge:   false
     rebase:  false
 
+collaborators:
+  - username: landingpro
+    permission: write
+  
+# Staging and publishing profile:
+staging:
+  profile: ~
+  whoami: asf-staged-site
+
 publish:
   whoami: asf-site
 

Reply via email to