From c55ebaa51a8aef3fee4261afa9f8a395058bc6b1 Mon Sep 17 00:00:00 2001 From: Julianne Swinoga Date: Sun, 5 Jan 2025 12:29:20 -0500 Subject: [PATCH 1/2] Add instructions on how to do a release to README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index e062232..65af1d7 100644 --- a/README.md +++ b/README.md @@ -50,3 +50,7 @@ To run the widget designer you need python development libraries: `source .venv/bin/activate && env PYSIDE_DESIGNER_PLUGINS=$(realpath ./OATFWGUI) pyside6-designer` Open `main_widget.ui` in the designer + +### Releasing a new version +1. Bump version in `OATFWGUI/_version.py` +2. Run `scripts/commit_and_tag_new_version.sh` From 785bb1fc3f882f5cfd9586955baa3e0daee7e7bc Mon Sep 17 00:00:00 2001 From: Julianne Swinoga Date: Sun, 5 Jan 2025 12:29:23 -0500 Subject: [PATCH 2/2] Update action-gh-release to v2, add downloads badge to release maybe --- .github/workflows/build-and-release.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-release.yaml b/.github/workflows/build-and-release.yaml index 74f8ec4..c32873f 100644 --- a/.github/workflows/build-and-release.yaml +++ b/.github/workflows/build-and-release.yaml @@ -199,9 +199,13 @@ jobs: zip -sf $zip_dist done - name: Publish GitHub release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: name: ${{ github.ref_name }} generate_release_notes: true + append_body: true + body: | + + ![](https://img.shields.io/github/downloads/OpenAstroTech/OATFWGUI/${{ github.ref_name }}/total) fail_on_unmatched_files: true files: artifacts/*/*.zip