Skip to content

Commit 91f31ea

Browse files
committed
ci: fix workflow artifact packaging
1 parent 4975e23 commit 91f31ea

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,13 @@ jobs:
5959
run: ${{ steps.detect-package-manager.outputs.manager }} run build
6060
- name: Zip files
6161
run: |
62+
set -euo pipefail
6263
mkdir -p artifacts
63-
ls -al ./.next
64-
ZIP_SRC=$(realpath .next)
65-
cd "$ZIP_SRC"
66-
zip -r ../artifacts/rustfs-console-latest.zip .
64+
ls -al ./out
65+
zip -r ./artifacts/rustfs-console-latest.zip ./out
6766
if [ "${{ github.event_name }}" = "release" ]; then
68-
mkdir -p ../artifacts/${{ github.event.release.tag_name }}
69-
zip -r ../artifacts/${{ github.event.release.tag_name }}/rustfs-console-${{ github.event.release.tag_name }}.zip .
67+
mkdir -p ./artifacts/${{ github.event.release.tag_name }}
68+
zip -r ./artifacts/${{ github.event.release.tag_name }}/rustfs-console-${{ github.event.release.tag_name }}.zip ./out
7069
fi
7170
- uses: actions/upload-artifact@v4
7271
name: Upload artifacts

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ jobs:
182182
with:
183183
name: release-build-${{ needs.pre-release-validation.outputs.version }}
184184
path: |
185-
.next/
185+
artifacts/*.zip
186+
artifacts/**/*.zip
186187
release-*.tar.gz
187188
retention-days: 90
188189

0 commit comments

Comments
 (0)