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

hsluoyz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/casbin-editor.git


The following commit(s) were added to refs/heads/master by this push:
     new f8567c4  fix: fix asf-site publishing error
f8567c4 is described below

commit f8567c4fb288afd2c97c5b4bd6fbd2b250e26b39
Author: Yang Luo <[email protected]>
AuthorDate: Sun Oct 4 22:21:52 2026 +0800

    fix: fix asf-site publishing error
---
 .asf.yaml                    |  6 +-----
 .github/workflows/master.yml | 19 +++----------------
 README.md                    | 16 ++--------------
 main.js                      |  4 ++--
 package.json                 |  2 +-
 5 files changed, 9 insertions(+), 38 deletions(-)

diff --git a/.asf.yaml b/.asf.yaml
index 74f602c..9edace4 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -17,7 +17,7 @@
 
 github:
   description: "Apache Casbin Editor"
-  homepage: https://casbin-editor.apache.org/
+  homepage: https://editor.casbin.org/
   features:
     issues: true
     projects: false
@@ -32,9 +32,5 @@ github:
     # prevent accidentially deleted
     master: {}
 
-publish:
-  whoami: asf-site
-  hostname: casbin-editor.apache.org
-
 notifications:
   commits:      [email protected]
diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml
index 7e95514..8736c95 100644
--- a/.github/workflows/master.yml
+++ b/.github/workflows/master.yml
@@ -15,7 +15,7 @@
 # specific language governing permissions and limitations
 # under the License.
 
-name: Build and Deploy
+name: Build
 
 on:
   workflow_dispatch:
@@ -25,10 +25,10 @@ on:
   pull_request:
 
 jobs:
-  build-and-deploy:
+  build:
     runs-on: ubuntu-latest
     permissions:
-      contents: write
+      contents: read
     steps:
       - name: Checkout
         uses: actions/checkout@v4
@@ -44,16 +44,3 @@ jobs:
 
       - name: Build
         run: yarn build
-
-      - name: Add .asf.yaml to site output
-        if: github.event_name != 'pull_request'
-        run: cp .asf.yaml out/.asf.yaml
-
-      - name: Publish to asf-site
-        if: github.event_name != 'pull_request'
-        uses: peaceiris/actions-gh-pages@v4
-        with:
-          github_token: ${{ secrets.GITHUB_TOKEN }}
-          publish_dir: ./out
-          publish_branch: asf-site
-          force_orphan: true
diff --git a/README.md b/README.md
index c35ce5c..9e35580 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,7 @@ It provides functionality such as syntax highlighting and 
code completion, just
 
 Try it at either:
 
-1. **Apache Casbin Editor** (official ASF deployment): 
[https://casbin-editor.apache.org/](https://casbin-editor.apache.org/)
+1. **Apache Casbin Editor**: 
[https://editor.casbin.org/](https://editor.casbin.org/)
 2. Apache Casbin website: 
[https://casbin.apache.org/editor](https://casbin.apache.org/editor)
 
 ## How it works?
@@ -26,18 +26,6 @@ Casbin-editor is a pure frontend Javascript project. It uses 
[node-casbin](https
 
 This project can be viewed as an example for using node-casbin in the browser.
 
-## Website deployment (ASF)
-
-The public site is **not** published with GitHub Pages anymore. CI builds the 
static Next.js output and pushes it to the repository’s **`asf-site`** branch; 
Apache Infrastructure then serves it at **https://casbin-editor.apache.org/**.
-
-- **Workflow:** [.github/workflows/master.yml](.github/workflows/master.yml) 
(`Build and Deploy`)
-- **Triggers:** push to `master`, `workflow_dispatch`, and pull requests (PRs 
only run build; they do not publish)
-- **Build:** `yarn install` and `yarn build` (static export to the `out/` 
directory)
-- **ASF metadata:** root [`.asf.yaml`](.asf.yaml) is copied to `out/.asf.yaml` 
before publish so the published tree includes the file Infra expects
-- **Publish:** 
[peaceiris/actions-gh-pages](https://github.com/peaceiris/actions-gh-pages) 
with `publish_branch: asf-site`, `publish_dir: ./out`, and `force_orphan: true` 
(each deploy replaces the branch history for a clean site-only tree)
-
-Repository settings for GitHub Pages (if any) are unrelated to this flow; the 
live editor URL is the ASF domain above.
-
 ## For Dev
 
 ```shell
@@ -67,4 +55,4 @@ yarn install
 yarn dist
 ```
 
-If the packaged app cannot load the local `out/` bundle, it falls back to 
loading **https://casbin-editor.apache.org/** in the window.
+If the packaged app cannot load the local `out/` bundle, it falls back to 
loading **https://editor.casbin.org/** in the window.
diff --git a/main.js b/main.js
index ad633d9..b606015 100644
--- a/main.js
+++ b/main.js
@@ -28,7 +28,7 @@ const createWindow = () => {
 
   win.loadFile(path.join(__dirname, 'out/index.html')).catch((err) => {
     console.error('Failed to load local file:', err);
-    win.loadURL('https://casbin-editor.apache.org/');
+    win.loadURL('https://editor.casbin.org/');
   });
 
   win.webContents.on('did-fail-load', async () => {
@@ -36,7 +36,7 @@ const createWindow = () => {
       await win.loadFile(path.join(__dirname, 'out/index.html'));
     } catch (err) {
       console.error('Retry loading local file failed:', err);
-      win.loadURL('https://casbin-editor.apache.org/');
+      win.loadURL('https://editor.casbin.org/');
     }
   });
 };
diff --git a/package.json b/package.json
index 15c1b31..055c67a 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
 {
   "name": "casbin-editor",
   "version": "0.0.0",
-  "homepage": "https://casbin-editor.apache.org/";,
+  "homepage": "https://editor.casbin.org/";,
   "main": "main.js",
   "scripts": {
     "dev": "next dev",


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to