Skip to content
This repository was archived by the owner on Jan 11, 2025. It is now read-only.

Commit e8f2a89

Browse files
fixing make release
1 parent 972075e commit e8f2a89

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ indent_size = 2
88
indent_style = space
99
trim_trailing_whitespace = true
1010

11+
[Makefile]
12+
indent_size = 4
13+
indent_style = tab
14+
1115
[*.sh]
1216
indent_size = 4
1317

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,11 @@ tag: .setup_gitrepo ## create a git tag
188188
git push origin --tags
189189

190190
release: ## create a github release
191-
curl --data '{"tag_name": "$(TAG_VER)", "target_commitish": "main", "name": "$(TAG_VER)", "body": "$(CHANGELOG)", "draft": false, "prerelease": false}' \
191+
echo '{"tag_name": "${TAG_VER}", "target_commitish": "main", "name": "${TAG_VER}", "body": "' > BODY.json
192+
make changelog >> BODY.json
193+
echo '", "draft": false, "prerelease": false}' >> BODY.json
194+
sed -i -e ':a' -e 'N' -e '$$!ba' -e 's/\n/\\n/g' BODY.json
195+
echo curl --data-binary @BODY.json \
192196
"https://api.github.com/repos/fabiocicerchia/nginx-lua/releases?access_token=${GH_TOKEN}"
193197

194198
generate-supported-versions: ## generate supported_versions file

0 commit comments

Comments
 (0)