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

tison pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-fury-site.git


The following commit(s) were added to refs/heads/main by this push:
     new 8051351  ci: deploy  (#89)
8051351 is described below

commit 80513514bc7cdc3e5c1026c5478ab1118ff4b839
Author: tison <[email protected]>
AuthorDate: Mon Dec 25 21:43:40 2023 +0800

    ci: deploy  (#89)
    
    Signed-off-by: tison <[email protected]>
---
 .asf.yaml                    |  7 +++++++
 .github/workflows/deploy.yml | 32 ++++++++++++--------------------
 package.json                 |  6 ++----
 3 files changed, 21 insertions(+), 24 deletions(-)

diff --git a/.asf.yaml b/.asf.yaml
index 75576c0..67cf929 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -34,3 +34,10 @@ github:
 
 publish:
   whoami: deploy
+
+notifications:
+  commits:      [email protected]
+  issues:       [email protected]
+  pullrequests: [email protected]
+  jobs:         [email protected]
+  discussions:  [email protected]
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 9225d97..95e18e9 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -1,32 +1,24 @@
-name: fury site deploy
+name: Deploy
 
 on:
   push:
     branches:
       - main
+  pull_request:
 
 jobs:
-  build-and-deploy:
+  deploy:
     runs-on: ubuntu-latest
-
     steps:
-      - name: Checkout code
-        uses: actions/checkout@v1
-
-      - name: Use Node.js
-        uses: actions/setup-node@v1
+      - uses: actions/checkout@v4
+      - uses: actions/setup-node@v4
         with:
           node-version: 18.x
-
-      # build
-      - name: Build Project
-        run: |
-          npm install
-          npm run build
-
-      # save to deploy branch
-      - name: Deploy to Github
-        uses: JamesIves/[email protected]
+      - run: npm install
+      - run: npm run build
+      - uses: peaceiris/actions-gh-pages@v3
+        if: github.event_name != 'pull_request'
         with:
-          branch: deploy 
-          folder: dist
+          github_token: ${{ secrets.GITHUB_TOKEN }}
+          publish_dir: ./dist
+          publish_branch: deploy
diff --git a/package.json b/package.json
index 32b0154..71cd7c5 100644
--- a/package.json
+++ b/package.json
@@ -1,9 +1,7 @@
 {
-  "name": "home",
+  "name": "fury-site",
   "version": "0.0.1",
-  "description": "A static site for fury",
-  "repository": "[email protected]:fury-project/fury-sites.git",
-  "license": "Apache",
+  "private": true,
   "scripts": {
     "build": "npm run build -w dumi-theme && dumi build",
     "dev": "dumi dev",


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

Reply via email to