Skip to content

Commit 5975732

Browse files
committed
publish release notes from workflow
1 parent 2cd01b9 commit 5975732

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/release.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333
VERSION="${GITHUB_REF#refs/tags/}"
3434
VERSION="${VERSION#v}"
3535
echo "Setting version to: $VERSION"
36+
echo "VERSION=$VERSION" >> "$GITHUB_ENV"
37+
echo "RELEASE_NOTES_PATH=docs/releases/$VERSION.md" >> "$GITHUB_ENV"
3638
3739
# Update manifest.json with the tag version
3840
jq --arg version "$VERSION" '.version = $version' manifest.json > manifest.tmp
@@ -58,6 +60,14 @@ jobs:
5860
EOF
5961
npm run build # This includes CSS building via npm run build-css
6062
63+
- name: Verify release notes
64+
run: |
65+
if [ ! -f "$RELEASE_NOTES_PATH" ]; then
66+
echo "Release notes file not found: $RELEASE_NOTES_PATH"
67+
exit 1
68+
fi
69+
echo "Using release notes from $RELEASE_NOTES_PATH"
70+
6171
- name: Generate artifact attestations
6272
uses: actions/attest@v4
6373
with:
@@ -69,8 +79,11 @@ jobs:
6979
- name: Create Release
7080
uses: softprops/action-gh-release@v2
7181
with:
82+
name: ${{ env.VERSION }}
83+
body_path: ${{ env.RELEASE_NOTES_PATH }}
7284
files: |
7385
main.js
7486
manifest.json
7587
styles.css
76-
draft: true
88+
draft: false
89+
make_latest: true

0 commit comments

Comments
 (0)