Skip to content

Commit f3003e4

Browse files
committed
ci: 改为 zip 格式
1 parent c25446b commit f3003e4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,16 @@ jobs:
6868
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
6969
- name: Static HTML export with Nuxt
7070
run: ${{ steps.detect-package-manager.outputs.manager }} run generate
71-
- name: Tar files
71+
- name: Zip files
7272
run: |
7373
mkdir -p artifacts
7474
ls -al ./dist
75-
cd ./dist && zip -r ../artifacts/rustfs-console-latest.zip .
75+
ZIP_SRC=$(realpath dist)
76+
cd "$ZIP_SRC"
77+
zip -r ../../artifacts/rustfs-console-latest.zip .
7678
if [ "${{ github.event_name }}" = "release" ]; then
77-
mkdir -p ../artifacts/${{ github.event.release.tag_name }}
78-
cd ./dist && zip -r ../artifacts/${{ github.event.release.tag_name }}/rustfs-console-${{ github.event.release.tag_name }}.zip .
79+
mkdir -p ../../artifacts/${{ github.event.release.tag_name }}
80+
zip -r ../../artifacts/${{ github.event.release.tag_name }}/rustfs-console-${{ github.event.release.tag_name }}.zip .
7981
fi
8082
- uses: actions/upload-artifact@v4
8183
name: Upload artifacts

0 commit comments

Comments
 (0)