fix builder exec script

This commit is contained in:
Liujian
2024-10-21 17:56:50 +08:00
parent 3d86672b52
commit 76f418d3df
+5 -2
View File
@@ -46,11 +46,14 @@ builder:
- if: $CI_COMMIT_BRANCH =~ "main"
script:
- go mod tidy
- mv ../artifacts/dist frontend/dist
- |
if [ -d "../artifacts/dist" ]; then
cp -r ../artifacts/dist frontend/dist
fi
- |
if [ -n "$(git diff --name-status HEAD~1 HEAD -- frontend)" ]; then
./scripts/build.sh $BUILD_DIR ${VERSION} all ""
rm -rf ../artifacts/dist
rm -fr ../artifacts/dist
cp -r frontend/dist ../artifacts/dist
else
./scripts/build.sh $BUILD_DIR ${VERSION}