Переглянути джерело

[ci]更新GitHub Actions工作流,移除clean-css-cli安装步骤,调整npm命令为构建,并优化上传构建产物的配置。

dufu1991 1 рік тому
батько
коміт
91ff752e4a
1 змінених файлів з 5 додано та 4 видалено
  1. 5 4
      .github/workflows/releases-site.yml

+ 5 - 4
.github/workflows/releases-site.yml

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