This is an automated email from the ASF dual-hosted git repository.
jamesbognar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/juneau.git
The following commit(s) were added to refs/heads/master by this push:
new 4fb9ba45f Add workflow to deploy prod website.
4fb9ba45f is described below
commit 4fb9ba45f797ae9d814474e5c272d1cf38d765a6
Author: James Bognar <[email protected]>
AuthorDate: Tue Oct 7 10:13:57 2025 -0400
Add workflow to deploy prod website.
---
.github/workflows/deploy-docs.yml | 25 +++++++++++++++++++++++--
1 file changed, 23 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/deploy-docs.yml
b/.github/workflows/deploy-docs.yml
index 01ae2f75d..06084c098 100644
--- a/.github/workflows/deploy-docs.yml
+++ b/.github/workflows/deploy-docs.yml
@@ -25,14 +25,16 @@ on:
- 'juneau-bean/**'
- 'juneau-examples/**'
- '.github/workflows/deploy-docs.yml'
+ workflow_dispatch:
permissions:
contents: write # Need write access to push to asf-staging
jobs:
- deploy:
+ build-docs:
runs-on: ubuntu-latest
-
+ if: github.ref == 'refs/heads/master'
+
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -80,3 +82,22 @@ jobs:
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
commit_message: 'Deploy documentation staging from ${{ github.sha }}'
+
+ promote-docs:
+ runs-on: ubuntu-latest
+ if: github.event_name == 'workflow_dispatch'
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+
+ - name: Set up Git identity
+ run: |
+ git config user.name "github-actions[bot]"
+ git config user.email "github-actions[bot]@users.noreply.github.com"
+
+ - name: Promote staging → site
+ run: |
+ git fetch origin asf-staging
+ git switch --detach origin/asf-staging
+ git push origin HEAD:asf-site