Skip to content

Commit a2569c0

Browse files
committed
Update ci workflow v19
1 parent 58af7d6 commit a2569c0

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,11 @@ jobs:
126126
mkdir -p build/dubboctl
127127
make build-dubbo-cp GOOS=${GOOS} GOARCH=${GOARCH} GIT_VERSION=${GIT_VERSION}
128128
make build-dubboctl GOOS=${GOOS} GOARCH=${GOARCH} GIT_VERSION=${GIT_VERSION}
129+
make build-sample GOOS=${GOOS} GOARCH=${GOARCH} GIT_VERSION=${GIT_VERSION}
129130
cp README.md LICENSE build/
130131
mv bin/dubbo-cp* build/dubbo-cp/
131132
mv bin/dubboctl* build/dubboctl/
133+
mv bin/samples* build/
132134
ls -ln build/dubboctl/ ; ls -ln build/dubbo-cp/ ; ls -ln build/
133135
134136
- name: Dubboctl Rename windows
@@ -190,7 +192,6 @@ jobs:
190192
cp build/dubbo-cp/dubbo-cp ${DIRNAME}/bin/
191193
cp build/README.md build/LICENSE ${DIRNAME}
192194
cp build/dubbo-cp/dubbo-cp.yaml ${DIRNAME}
193-
cp -r ../samples/ ${DIRNAME}/samples
194195
ls -Rlh ${DIRNAME}
195196
if [ "${{ matrix.goos }}" = "windows" ]; then
196197
zip -r ${FILENAME}.zip ${DIRNAME}

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,8 @@ build-dubbo-cp:
2525
build-dubboctl:
2626
CGO_ENABLED=0 GOOS=$(GOOS) GOARCH=$(GOARCH) go build \
2727
-ldflags "-X github.com/apache/dubbo-kubernetes/pkg/version.gitTag=$(GIT_VERSION)" \
28-
-o bin/dubboctl dubboctl/main.go
28+
-o bin/dubboctl dubboctl/main.go
29+
30+
.PHONY: build-sample
31+
clone-sample:
32+
cp -r samples bin/samples

0 commit comments

Comments
 (0)