Skip to content

Commit eba57ef

Browse files
authored
fix(CI): fix nightly releases 2 (#362)
1 parent 5fd42bd commit eba57ef

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.github/workflows/nightly-release.yml

+12-7
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,10 @@ jobs:
8787
# Delete local tag if it exists
8888
git tag -d nightly 2>/dev/null || true
8989
90-
echo "Creating new nightly release..."
91-
# Create new release with tag
92-
gh release create nightly \
93-
--title "Nightly Build v${VERSION}" \
94-
--notes "🌙 This is an automated nightly build from the master branch.
90+
# Create release notes
91+
RELEASE_NOTES="🌙 This is an automated nightly build from the master branch.
9592
96-
${{ env.CHANGELOG }}
93+
${CHANGELOG}
9794
9895
## Installation
9996
@@ -103,7 +100,15 @@ jobs:
103100
### Other Editors
104101
- Download tact-language-server-v${VERSION}.tar.gz (Linux/macOS) or tact-language-server-v${VERSION}.zip (Windows)
105102
- Extract it to a convenient location
106-
- Configure your editor to use the language server from the extracted folder" \
103+
- Configure your editor to use the language server from the extracted folder"
104+
105+
echo "Creating new nightly release..."
106+
echo "$RELEASE_NOTES" > release_notes.md
107+
108+
# Create new release with tag
109+
gh release create nightly \
110+
--title "Nightly Build v${VERSION}" \
111+
--notes-file release_notes.md \
107112
--prerelease \
108113
--target master \
109114
*.vsix "tact-language-server-v${VERSION}.tar.gz" "tact-language-server-v${VERSION}.zip"

0 commit comments

Comments
 (0)