Skip to content

Commit 750a69a

Browse files
committed
fix: publish releases to correct branch, tag latest on same branch
1 parent 4ffa01c commit 750a69a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ jobs:
6060
--title "Release ${{ github.event.inputs.new_release_version }}" \
6161
--generate-notes \
6262
--draft \
63+
--target ${{ github.ref_name }} \
6364
${{format('--notes-start-tag {0}', env.LATEST_TAG) || ''}} \
6465
'CortexCommand.windows.zip#Cortex Command [v${{ github.event.inputs.new_release_version }}] (Windows Release)' \
6566
'CortexCommand.linux.zip#Cortex Command [v${{ github.event.inputs.new_release_version }}] (Linux Release)' \
@@ -82,7 +83,8 @@ jobs:
8283
-H "Accept: application/vnd.github.v3+json" \
8384
https://api.github.com/repos/${{ github.repository }}/git/refs/tags/${{ env.LATEST_TAG }} \
8485
-d '{
85-
"sha": "$RELEASE_COMMIT",
86+
"sha": "'"$RELEASE_COMMIT"'",
87+
"ref": "${{ github.ref }}"
8688
}'
8789
env:
8890
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)