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 cf98fab1 fix workflow v13
cf98fab1 is described below

commit cf98fab1dba87c1bed55b2fac45d90ae8e4f87b4
Author: mfordjody <[email protected]>
AuthorDate: Sat May 31 20:20:53 2025 +0800

    fix workflow v13
---
 .github/workflows/dubbo-cp-release.yaml | 11 +----------
 .github/workflows/dubboctl-release.yaml | 25 ++++++++++++-------------
 2 files changed, 13 insertions(+), 23 deletions(-)

diff --git a/.github/workflows/dubbo-cp-release.yaml 
b/.github/workflows/dubbo-cp-release.yaml
index 67bf8b5f..909de7b4 100644
--- a/.github/workflows/dubbo-cp-release.yaml
+++ b/.github/workflows/dubbo-cp-release.yaml
@@ -75,19 +75,10 @@ jobs:
             echo "name=${FILENAME}.tar.gz" >> $GITHUB_OUTPUT
           fi
 
-      - name: Create Release
-        id: create_release
-        uses: actions/create-release@v1
-        with:
-          tag_name: ${{ github.ref_name }}
-          release_name: ${{ github.ref_name }}
-        env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
       - name: Upload Release Asset
         uses: actions/upload-release-asset@v1
         with:
-          upload_url: ${{ steps.create_release.outputs.upload_url }}
+          upload_url: ${{ .upload_url }}
           asset_path: ./${{ steps.package.outputs.name }}
           asset_name: ${{ steps.package.outputs.name }}
           asset_content_type: application/octet-stream
\ No newline at end of file
diff --git a/.github/workflows/dubboctl-release.yaml 
b/.github/workflows/dubboctl-release.yaml
index 912b83f4..6782159c 100644
--- a/.github/workflows/dubboctl-release.yaml
+++ b/.github/workflows/dubboctl-release.yaml
@@ -22,9 +22,7 @@ name: dubboctl Release
 on:
   push:
     tags:
-      - 'dubboctl-**'
-  release:
-    types: [published]
+      - 'dubboctl-*'
 
 jobs:
   release:
@@ -39,6 +37,7 @@ jobs:
         exclude:
           - goos: darwin
             goarch: 386
+
     steps:
       - name: Checkout code
         uses: actions/checkout@v4
@@ -62,6 +61,15 @@ jobs:
           cp README.md LICENSE build/
           mv bin/dubboctl* build/
 
+      - name: Create Release
+        id: create_release
+        uses: actions/create-release@v3
+        with:
+          tag_name: ${{ github.ref_name }}
+          release_name: ${{ github.ref_name }}
+          draft: false
+          prerelease: false
+
       - name: Create package
         id: package
         run: |
@@ -75,19 +83,10 @@ jobs:
             echo "name=${FILENAME}.tar.gz" >> $GITHUB_OUTPUT
           fi
 
-      - name: Create Release
-        id: create_release
-        uses: actions/create-release@v1
-        with:
-          tag_name: ${{ github.ref_name }}
-          release_name: ${{ github.ref_name }}
-        env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
       - name: Upload Release Asset
         uses: actions/upload-release-asset@v1
         with:
           upload_url: ${{ steps.create_release.outputs.upload_url }}
-          asset_path: ./${{ steps.package.outputs.name }}
+          asset_path: ./build/${{ steps.package.outputs.name }}
           asset_name: ${{ steps.package.outputs.name }}
           asset_content_type: application/octet-stream

Reply via email to