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

wangzx pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/echarts-theme-builder.git


The following commit(s) were added to refs/heads/master by this push:
     new 1cffa58  add deploy action for preview
1cffa58 is described below

commit 1cffa58ff4ddcc51d65f3568be305a45824c96ac
Author: plainheart <[email protected]>
AuthorDate: Mon Nov 10 13:23:56 2025 +0800

    add deploy action for preview
---
 .github/workflows/deploy.yml | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
new file mode 100644
index 0000000..b2ae774
--- /dev/null
+++ b/.github/workflows/deploy.yml
@@ -0,0 +1,34 @@
+name: Build and Deploy
+
+on:
+  push:
+    branches:
+      - master
+
+jobs:
+  build-and-deploy:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout 🛎️
+        uses: actions/checkout@v5
+
+      - name: Setup Node.js
+        uses: actions/setup-node@v6
+        with:
+          node-version: 22
+          registry-url: https://registry.npmjs.org/
+
+      - name: Install and Build 🔧
+        run: |
+          npm i
+          npm i @jamesives/github-pages-deploy-action -D
+          npm run build
+
+      - name: Deploy 🚀
+        uses: ./node_modules/@jamesives/github-pages-deploy-action
+        with:
+          branch: gh-pages # The branch the action should deploy to.
+          folder: dist
+          target-folder: docs
+          single-commit: true
+          clean: true


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

Reply via email to