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

popduke pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bifromq-sites.git


The following commit(s) were added to refs/heads/master by this push:
     new 8e108a20 Update workfow to manually deploy site
8e108a20 is described below

commit 8e108a2051e519099c831d25478d6f8c1fc4285f
Author: Yonny Hao <[email protected]>
AuthorDate: Fri Nov 28 15:07:23 2025 +0800

    Update workfow to manually deploy site
---
 .github/workflows/deploy.yml | 23 +++++++++++++++--------
 1 file changed, 15 insertions(+), 8 deletions(-)

diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index bd05621a..52b8882d 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -18,10 +18,13 @@
 name: Deploy To ASF Production
 
 on:
-  push:
-    branches: [master]
-  pull_request:
   workflow_dispatch:
+    inputs:
+      deploy:
+        description: "Whether to publish built site to asf-site (true = 
deploy, false = only build)"
+        required: true
+        default: true
+        type: boolean
 
 jobs:
   deploy:
@@ -34,11 +37,15 @@ jobs:
       - uses: pnpm/action-setup@v2
         with:
           version: 8
-      - run: pnpm install
-      - run: pnpm run build
-      - run: cp .asf.yaml build/.asf.yaml
-      - uses: peaceiris/actions-gh-pages@v3
-        if: github.event_name != 'pull_request'
+      - name: Install dependencies
+        run: pnpm install
+      - name: Build site
+        run: pnpm run build
+      - name: Copy .asf.yaml
+        run: cp .asf.yaml build/.asf.yaml
+      - name: Publish to asf-site
+        if: ${{ inputs.deploy }}
+        uses: peaceiris/actions-gh-pages@v3
         with:
           github_token: ${{ secrets.GITHUB_TOKEN }}
           publish_dir: ./build

Reply via email to