This is an automated email from the ASF dual-hosted git repository.
zhongxjian pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-kubernetes.git
The following commit(s) were added to refs/heads/master by this push:
new f316eb16 fix workflow v11
f316eb16 is described below
commit f316eb1610cd6edee9ff4697a9f9e13d5270e5bc
Author: mfordjody <[email protected]>
AuthorDate: Sat May 31 20:04:03 2025 +0800
fix workflow v11
---
.github/workflows/dubbo-cp-release.yaml | 8 ++++++--
.github/workflows/dubboctl-release.yaml | 10 ++++++++--
Makefile | 8 +++++++-
3 files changed, 21 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/dubbo-cp-release.yaml
b/.github/workflows/dubbo-cp-release.yaml
index d20514aa..447c24dd 100644
--- a/.github/workflows/dubbo-cp-release.yaml
+++ b/.github/workflows/dubbo-cp-release.yaml
@@ -17,11 +17,15 @@
# under the License.
#
-name: dubbo-cp release
+name: dubbo-cp Release
on:
+ push:
+ tags:
+ - 'dubbo-cp-**'
release:
- types: [created]
+ types: [published]
+
jobs:
release:
diff --git a/.github/workflows/dubboctl-release.yaml
b/.github/workflows/dubboctl-release.yaml
index b900df47..47c9b031 100644
--- a/.github/workflows/dubboctl-release.yaml
+++ b/.github/workflows/dubboctl-release.yaml
@@ -24,7 +24,7 @@ on:
tags:
- 'dubboctl-**'
release:
- types: [created]
+ types: [published]
jobs:
release:
@@ -75,10 +75,16 @@ jobs:
echo "name=${FILENAME}.tar.gz" >> $GITHUB_OUTPUT
fi
+ - name: Create Release
+ id: create_release
+ uses: actions/create-release@v1
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
with:
- upload_url: ${{ github.event.release.upload_url }}
+ upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./${{ steps.package.outputs.name }}
asset_name: ${{ steps.package.outputs.name }}
asset_content_type: application/octet-stream
diff --git a/Makefile b/Makefile
index 153b0bbe..0aab0fcf 100644
--- a/Makefile
+++ b/Makefile
@@ -15,8 +15,14 @@
SHELL := /usr/bin/env bash
+.PHONY: build-dubbo-cp
+build-dubbo-cp:
+ CGO_ENABLED=0 GOOS=$(GOOS) GOARCH=$(GOARCH) go build \
+ -ldflags "-X
github.com/apache/dubbo-kubernetes/pkg/version.gitTag=$(GIT_VERSION)" \
+ -o bin/dubbo-cp app/dubbo-cp/main.go
+
.PHONY: build-dubboctl
build-dubboctl:
CGO_ENABLED=0 GOOS=$(GOOS) GOARCH=$(GOARCH) go build \
-ldflags "-X
github.com/apache/dubbo-kubernetes/pkg/version.gitTag=$(GIT_VERSION)" \
- -o bin/dubboctl dubboctl/main.go
\ No newline at end of file
+ -o bin/dubboctl dubboctl/main.go
\ No newline at end of file