mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-26 16:01:56 +08:00
fix builder exec script
This commit is contained in:
+5
-2
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user