Skip to content

Commit 419f3fc

Browse files
fix: preserve draft release notes, publish only after all artifacts upload
Co-authored-by: Tempest <tempestai.dev@gmail.com>
1 parent 7fcd199 commit 419f3fc

1 file changed

Lines changed: 16 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,17 @@ jobs:
1212
create-release:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- name: Create GitHub Release
15+
- name: Create GitHub Release (if no draft exists)
1616
run: |
17-
gh release create ${{ github.ref_name }} \
18-
--title "${{ github.ref_name }}" \
19-
--notes "See [CHANGELOG](https://github.com/tempestai-dev/tempest/blob/main/claude-docs/changelog.md) for details." \
20-
--repo tempestai-dev/tempest
17+
if gh release view ${{ github.ref_name }} --repo tempestai-dev/tempest > /dev/null 2>&1; then
18+
echo "Release already exists — keeping existing notes and state."
19+
else
20+
gh release create ${{ github.ref_name }} \
21+
--draft \
22+
--title "${{ github.ref_name }}" \
23+
--notes "" \
24+
--repo tempestai-dev/tempest
25+
fi
2126
env:
2227
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2328

@@ -122,6 +127,12 @@ jobs:
122127
needs: build
123128
runs-on: ubuntu-latest
124129
steps:
130+
- name: Publish release
131+
run: |
132+
gh release edit ${{ github.ref_name }} --draft=false --repo tempestai-dev/tempest
133+
env:
134+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
135+
125136
- name: Download signatures
126137
run: |
127138
gh release download ${{ github.ref_name }} \

0 commit comments

Comments
 (0)