File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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 :
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
You can’t perform that action at this time.
0 commit comments