From 8da93ec63e6a707eb102bc4a95409d8c0aad331d Mon Sep 17 00:00:00 2001 From: overtrue Date: Sat, 1 Mar 2025 22:22:07 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=94=B9=E4=B8=BA=20zip=20=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6bf748f..9c2b8f4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -55,15 +55,15 @@ jobs: with: node-version: "22" cache: ${{ steps.detect-package-manager.outputs.manager }} - - name: Restore cache - uses: actions/cache@v4 - with: - path: | - dist - .nuxt - key: ${{ runner.os }}-nuxt-build-${{ hashFiles('dist') }} - restore-keys: | - ${{ runner.os }}-nuxt-build- + # - name: Restore cache + # uses: actions/cache@v4 + # with: + # path: | + # dist + # .nuxt + # key: ${{ runner.os }}-nuxt-build-${{ hashFiles('dist') }} + # restore-keys: | + # ${{ runner.os }}-nuxt-build- - name: Install dependencies run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} - name: Static HTML export with Nuxt @@ -72,15 +72,15 @@ jobs: run: | mkdir -p artifacts ls -al ./dist - tar -cvzf artifacts/rustfs-console-latest.tar.gz -C ./dist . + cd ./dist && zip -r ../artifacts/rustfs-console-latest.zip . if [ "${{ github.event_name }}" = "release" ]; then - mkdir -p artifacts/${{ github.event.release.tag_name }} - tar -cvzf artifacts/${{ github.event.release.tag_name }}/rustfs-console-${{ github.event.release.tag_name }}.tar.gz -C ./dist . + mkdir -p ../artifacts/${{ github.event.release.tag_name }} + cd ./dist && zip -r ../artifacts/${{ github.event.release.tag_name }}/rustfs-console-${{ github.event.release.tag_name }}.zip . fi - uses: actions/upload-artifact@v4 name: Upload artifacts with: - path: ./artifacts/rustfs-console-latest.tar.gz + path: ./artifacts/rustfs-console-latest.zip - name: Upload to Bucket for `latest` uses: JohnGuan/oss-upload-action@main with: @@ -94,9 +94,9 @@ jobs: if: ${{ github.event_name == 'release' }} uses: softprops/action-gh-release@v2 with: - files: ./artifacts/rustfs-console-latest.tar.gz + files: ./artifacts/rustfs-console-latest.zip - name: Upload release asset `versioned` if: ${{ github.event_name == 'release' }} uses: softprops/action-gh-release@v2 with: - files: ./artifacts/${{ github.event.release.tag_name }}/rustfs-console-${{ github.event.release.tag_name }}.tar.gz + files: ./artifacts/${{ github.event.release.tag_name }}/rustfs-console-${{ github.event.release.tag_name }}.zip