Skip to content

Commit 03d8108

Browse files
committed
fix release
1 parent 13067ca commit 03d8108

1 file changed

Lines changed: 9 additions & 13 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -54,27 +54,23 @@ jobs:
5454

5555
- name: Generate release notes
5656
if: steps.check_release.outputs.exists == 'false'
57-
id: notes
5857
run: |
5958
TAG="v${{ steps.pkg.outputs.version }}"
60-
GENERATED=$(gh api repos/${{ github.repository }}/releases/generate-notes \
59+
TARBALL_URL="https://github.com/${{ github.repository }}/releases/download/${TAG}/flame-cli-${{ steps.pkg.outputs.version }}.tgz"
60+
61+
gh api repos/${{ github.repository }}/releases/generate-notes \
6162
-f tag_name="$TAG" \
6263
-f target_commitish=main \
63-
--jq '.body')
64-
TARBALL_URL="https://github.com/${{ github.repository }}/releases/download/${TAG}/flame-cli-${{ steps.pkg.outputs.version }}.tgz"
65-
BODY="${GENERATED}
64+
--jq '.body' > release-notes.md
65+
66+
cat >> release-notes.md <<EOF
6667
6768
## Install
6869
6970
\`\`\`bash
7071
npm install -g ${TARBALL_URL}
71-
\`\`\`"
72-
73-
{
74-
echo "body<<RELEASE_NOTES_EOF"
75-
echo "$BODY"
76-
echo "RELEASE_NOTES_EOF"
77-
} >> "$GITHUB_OUTPUT"
72+
\`\`\`
73+
EOF
7874
env:
7975
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8076

@@ -85,6 +81,6 @@ jobs:
8581
gh release create "$TAG" \
8682
flame-cli-${{ steps.pkg.outputs.version }}.tgz \
8783
--title "$TAG" \
88-
--notes "${{ steps.notes.outputs.body }}"
84+
--notes-file release-notes.md
8985
env:
9086
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)