This is an automated email from the ASF dual-hosted git repository.
popduke pushed a commit to branch apache-site-build
in repository https://gitbox.apache.org/repos/asf/bifromq-sites.git
The following commit(s) were added to refs/heads/apache-site-build by this push:
new 9f0c2f0 update git actions
9f0c2f0 is described below
commit 9f0c2f04df17bccf3446c201ce52a386f3c91ecf
Author: Yonny Hao <[email protected]>
AuthorDate: Mon Jun 23 19:02:05 2025 +0800
update git actions
---
.asf.yaml | 13 +++++++------
.github/{deploy.yml => deploy-prod.yml} | 6 ++----
.github/{deploy.yml => deploy-staging.yml} | 13 +++++++------
3 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/.asf.yaml b/.asf.yaml
index 388d22d..acf0e5c 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -32,11 +32,12 @@ github:
main: {}
asf-site: {}
+staging:
+ profile: ~
+ whoami: asf-staging
+
publish:
whoami: asf-site
-# notifications:
-# commits: [email protected]
-# issues: [email protected]
-# pullrequests: [email protected]
-# jobs: [email protected]
-# discussions: [email protected]
+ notifications:
+ commits: [email protected]
+ pullrequests: [email protected]
diff --git a/.github/deploy.yml b/.github/deploy-prod.yml
similarity index 95%
copy from .github/deploy.yml
copy to .github/deploy-prod.yml
index d4756b3..6637449 100644
--- a/.github/deploy.yml
+++ b/.github/deploy-prod.yml
@@ -15,12 +15,10 @@
# specific language governing permissions and limitations
# under the License.
-name: Deploy
+name: Deploy To ASF Production
on:
- push:
- branches: [ main ]
- pull_request:
+ workflow_dispatch:
jobs:
deploy:
diff --git a/.github/deploy.yml b/.github/deploy-staging.yml
similarity index 85%
rename from .github/deploy.yml
rename to .github/deploy-staging.yml
index d4756b3..a96b780 100644
--- a/.github/deploy.yml
+++ b/.github/deploy-staging.yml
@@ -15,12 +15,12 @@
# specific language governing permissions and limitations
# under the License.
-name: Deploy
+name: Deploy To ASF Staging
on:
push:
- branches: [ main ]
- pull_request:
+ branches: [main]
+ workflow_dispatch:
jobs:
deploy:
@@ -36,9 +36,10 @@ jobs:
- 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: Publish to asf-staging
+ uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
- publish_branch: asf-site
+ publish_branch: asf-staging
+ clean: true