From 32b67e66e407d10fd734106683a804ccda21f4b4 Mon Sep 17 00:00:00 2001 From: Simon Liu <69875423+sliu008@users.noreply.github.com> Date: Wed, 23 Oct 2024 12:24:41 -0700 Subject: [PATCH] automate release for main (#297) * automate release for main * update release in github actions * Update CHANGELOG.md --------- Co-authored-by: James Wood <8115931+jamesfwood@users.noreply.github.com> --- .github/workflows/build-pipeline.yml | 12 ++++++++++++ CHANGELOG.md | 1 + 2 files changed, 13 insertions(+) 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