mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-09-20 13:30:46 +02:00
ci: fix artifact download path to avoid checkout conflicts
- Download artifacts to 'build-artifacts' directory instead of '.' - Prevents checkout from overwriting downloaded files - Explicitly copy weed binary from build-artifacts to docker/ directory - Update Maven artifact restoration to use new path
This commit is contained in:
@@ -111,23 +111,24 @@ jobs:
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: seaweedfs-build
|
||||
path: .
|
||||
path: build-artifacts
|
||||
|
||||
- name: Restore Maven repository
|
||||
run: |
|
||||
echo "Restoring Maven artifacts to ~/.m2/repository..."
|
||||
mkdir -p ~/.m2/repository/com
|
||||
if [ -d ".m2/repository/com/seaweedfs" ]; then
|
||||
cp -r .m2/repository/com/seaweedfs ~/.m2/repository/com/
|
||||
if [ -d "build-artifacts/.m2/repository/com/seaweedfs" ]; then
|
||||
cp -r build-artifacts/.m2/repository/com/seaweedfs ~/.m2/repository/com/
|
||||
echo "✓ Maven artifacts restored"
|
||||
else
|
||||
echo "⚠️ Warning: Maven artifacts not found in download"
|
||||
ls -la
|
||||
ls -la build-artifacts/
|
||||
fi
|
||||
|
||||
- name: Prepare SeaweedFS binary
|
||||
run: |
|
||||
echo "Making SeaweedFS binary executable..."
|
||||
echo "Copying SeaweedFS binary to docker directory..."
|
||||
cp build-artifacts/docker/weed docker/
|
||||
chmod +x docker/weed
|
||||
ls -la docker/weed
|
||||
echo "✓ Binary is ready"
|
||||
@@ -237,23 +238,24 @@ jobs:
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: seaweedfs-build
|
||||
path: .
|
||||
path: build-artifacts
|
||||
|
||||
- name: Restore Maven repository
|
||||
run: |
|
||||
echo "Restoring Maven artifacts to ~/.m2/repository..."
|
||||
mkdir -p ~/.m2/repository/com
|
||||
if [ -d ".m2/repository/com/seaweedfs" ]; then
|
||||
cp -r .m2/repository/com/seaweedfs ~/.m2/repository/com/
|
||||
if [ -d "build-artifacts/.m2/repository/com/seaweedfs" ]; then
|
||||
cp -r build-artifacts/.m2/repository/com/seaweedfs ~/.m2/repository/com/
|
||||
echo "✓ Maven artifacts restored"
|
||||
else
|
||||
echo "⚠️ Warning: Maven artifacts not found in download"
|
||||
ls -la
|
||||
ls -la build-artifacts/
|
||||
fi
|
||||
|
||||
- name: Prepare SeaweedFS binary
|
||||
run: |
|
||||
echo "Making SeaweedFS binary executable..."
|
||||
echo "Copying SeaweedFS binary to docker directory..."
|
||||
cp build-artifacts/docker/weed docker/
|
||||
chmod +x docker/weed
|
||||
ls -la docker/weed
|
||||
echo "✓ Binary is ready"
|
||||
|
||||
Reference in New Issue
Block a user