diff --git a/.github/workflows/build-pipeline.yml b/.github/workflows/build-pipeline.yml index 9582a68b..32a13690 100644 --- a/.github/workflows/build-pipeline.yml +++ b/.github/workflows/build-pipeline.yml @@ -307,3 +307,15 @@ jobs: working-directory: deployment run: poetry run python harmony_deploy.py --tag ${{ env.software_version }} + + - name: Create Release + id: create_release + if: | + github.ref == 'refs/heads/main' + uses: softprops/action-gh-release@v1 + with: + tag_name: "${{ env.software_version }}" # Use the tag that triggered the action + release_name: Release v{{ env.software_version }} + draft: false + generate_release_notes: true + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 509d9ac4..a9bfe735 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ### Added - Added custom exception to progate error messages to harmony. +- Added an automated release step for main branch in github actions. ### Changed ### Deprecated ### Removed