Browse Source

[ci]更改GitHub Actions配置,使用Bun替代Node并更新构建步骤

dufu1991 1 year ago
parent
commit
2c3c5af2db
1 changed files with 7 additions and 7 deletions
  1. 7 7
      .github/workflows/releases-site.yml

+ 7 - 7
.github/workflows/releases-site.yml

@@ -32,12 +32,12 @@ jobs:
         steps:
             - name: Checkout
               uses: actions/checkout@v4
-            - name: Set up Node
-              uses: actions/setup-node@v4
+            - name: Set up Bun
+              uses: oven-sh/setup-bun@v2
               with:
-                  node-version: 20.x
+                  bun-version: 'latest'
             - name: Install clean-css-cli
-              run: npm install clean-css-cli -g
+              run: bun i clean-css-cli -g
 
             - name: Build rollup-plugin-stdf-icon and stdf and rollup-plugin-md-ts
               run: |
@@ -56,14 +56,14 @@ jobs:
               run: |
                   cd docs/site
                   npm i
-                  npm run build
+                  npm run all
             - name: Setup Pages
               uses: actions/configure-pages@v4
             - name: Upload artifact
               uses: actions/upload-pages-artifact@v3
               with:
-                  # Upload dist folder
-                  path: './docs/site/dist'
+                  # Upload build folder
+                  path: './docs/site/build'
             - name: Deploy to GitHub Pages
               id: deployment
               uses: actions/deploy-pages@v4