File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -126,10 +126,12 @@ jobs:
126126 else
127127 echo "CMD_ENTRYPOINT_EXISTS=false" >> "$GITHUB_ENV"
128128 fi
129- - name : Set the name for external CLI
129+ - name : Set binary name based on PACKAGE_NAME
130130 run : |
131131 if [ "${{ env.PACKAGE_NAME }}" == "framework" ]; then
132- echo "PACKAGE_NAME=ctf" >> $GITHUB_ENV
132+ echo "BINARY_NAME=ctf" >> $GITHUB_ENV
133+ else
134+ echo "BINARY_NAME=${{ env.PACKAGE_NAME }}" >> $GITHUB_ENV
133135 fi
134136 - name : Build binary release
135137 uses : wangyoucao577/go-release-action@v1
@@ -139,7 +141,7 @@ jobs:
139141 goversion : ' 1.22.6'
140142 goos : ${{ matrix.platform }}
141143 goarch : ${{ matrix.goarch }}
142- binary_name : ${{ env.PACKAGE_NAME }}
144+ binary_name : ${{ env.BINARY_NAME }}
143145 release_name : ${{ env.PACKAGE_NAME }}
144146 release_tag : ${{ env.PACKAGE_NAME}}/${{ env.VERSION }}
145147 project_path : ${{ env.PACKAGE_NAME }}/cmd
You can’t perform that action at this time.
0 commit comments