File tree Expand file tree Collapse file tree 3 files changed +26
-3
lines changed Expand file tree Collapse file tree 3 files changed +26
-3
lines changed Original file line number Diff line number Diff line change @@ -152,11 +152,19 @@ jobs:
152152 - uses : actions/checkout@v2
153153
154154 - name : Tag commit
155+ id : tag-commit
155156 run : |
156157 version=$(sed -n 's/^version = "\(.*\)"/\1/p' pyproject.toml)
158+ echo "VERSION=$version" >> "$GITHUB_OUTPUT"
157159 git tag "$version" "${{github.ref_name}}"
158160 git push origin "$version"
159161
162+ - name : Get changes
163+ id : changelog
164+ run : |
165+ changes=$(python dev_scripts/changelog_extract.py)
166+ echo "CHANGES=$changes" >> "$GITHUB_OUTPUT"
167+
160168 - name : Set up Python
161169 uses : actions/setup-python@v2
162170 with :
@@ -169,5 +177,16 @@ jobs:
169177 - name : Build
170178 run : poetry build
171179
172- - name : Publish
173- uses : pypa/gh-action-pypi-publish@release/v1
180+ - name : Create Release
181+ id : create-release
182+ uses : softprops/action-gh-release@v1
183+ with :
184+ tag_name : ${{ steps.tag-commit.outputs.VERSION }}
185+ name : Release ${{ steps.tag-commit.outputs.VERSION }}
186+ body : ${{ steps.changelog.outputs.CHANGES }}
187+ draft : true
188+ prerelease : false
189+ files : dist/*
190+
191+ # - name: Publish
192+ # uses: pypa/gh-action-pypi-publish@release/v1
Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 0.2.1 - 7/10/23
4+
5+ - Automated Github releases
6+
37## 0.2.0 - 7/9/23
48
59- Support for MySQL ~ 8.0
Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " heimdallm"
3- version = " 0.2.0 "
3+ version = " 0.2.1 "
44description = " Construct trusted SQL queries from untrusted input"
55homepage = " https://github.com/amoffat/HeimdaLLM"
66repository = " https://github.com/amoffat/HeimdaLLM"
You can’t perform that action at this time.
0 commit comments