Don't run `make clean` automatically on `build`
Since when releasing, many steps depend on the `build`, so we don't want to clean mid-way through releasing. Explicitly run `make clean` at the start of `make release`.
This commit is contained in:
parent
aeee6325af
commit
62b9c2de7a
3
Makefile
3
Makefile
|
@ -65,7 +65,7 @@ clean:
|
|||
clean_xcode:
|
||||
$(BUILD_TOOL) $(XCODEFLAGS) -configuration Test clean
|
||||
|
||||
build: clean
|
||||
build:
|
||||
mkdir -p "$(SWIFTLINT_EXECUTABLE_PARENT)"
|
||||
bazel build --config release universal_swiftlint
|
||||
$(eval SWIFTLINT_BINARY := $(shell bazel cquery --config release --output=files universal_swiftlint))
|
||||
|
@ -167,6 +167,7 @@ endif
|
|||
@sed -i '' 's/## Main/## $(NEW_VERSION_AND_NAME)/g' CHANGELOG.md
|
||||
@sed 's/__VERSION__/$(NEW_VERSION)/g' tools/Version.swift.template > Source/SwiftLintFramework/Models/Version.swift
|
||||
@sed -e '3s/.*/ version = "$(NEW_VERSION)",/' -i '' MODULE.bazel
|
||||
make clean
|
||||
make package
|
||||
make bazel_release
|
||||
make portable_zip
|
||||
|
|
Loading…
Reference in New Issue