Skip to content

Commit

Permalink
automate release for main (#297)
Browse files Browse the repository at this point in the history
* automate release for main

* update release in github actions

* Update CHANGELOG.md

---------

Co-authored-by: James Wood <[email protected]>
  • Loading branch information
sliu008 and jamesfwood authored Oct 23, 2024
1 parent 1a68588 commit 32b67e6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 32b67e6

Please sign in to comment.