Skip to content

Commit

Permalink
testing automated github releases
Browse files Browse the repository at this point in the history
  • Loading branch information
amoffat committed Jul 10, 2023
1 parent 31c0e80 commit 29cc04b
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,19 @@ jobs:
- uses: actions/checkout@v2

- name: Tag commit
id: tag-commit
run: |
version=$(sed -n 's/^version = "\(.*\)"/\1/p' pyproject.toml)
echo "VERSION=$version" >> "$GITHUB_OUTPUT"
git tag "$version" "${{github.ref_name}}"
git push origin "$version"
- name: Get changes
id: changelog
run: |
changes=$(python dev_scripts/changelog_extract.py)
echo "CHANGES=$changes" >> "$GITHUB_OUTPUT"
- name: Set up Python
uses: actions/setup-python@v2
with:
Expand All @@ -169,5 +177,16 @@ jobs:
- name: Build
run: poetry build

- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1
- name: Create Release
id: create-release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.tag-commit.outputs.VERSION }}
name: Release ${{ steps.tag-commit.outputs.VERSION }}
body: ${{ steps.changelog.outputs.CHANGES }}
draft: true
prerelease: false
files: dist/*

# - name: Publish
# uses: pypa/gh-action-pypi-publish@release/v1
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.2.1 - 7/10/23

- Automated Github releases

## 0.2.0 - 7/9/23

- Support for MySQL ~8.0
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "heimdallm"
version = "0.2.0"
version = "0.2.1"
description = "Construct trusted SQL queries from untrusted input"
homepage = "https://github.com/amoffat/HeimdaLLM"
repository = "https://github.com/amoffat/HeimdaLLM"
Expand Down

0 comments on commit 29cc04b

Please sign in to comment.