From 480ba9f746bc66b2e59e99abdd4b99cd1bc78887 Mon Sep 17 00:00:00 2001 From: Steven Enamakel Date: Fri, 17 Apr 2026 21:23:17 -0700 Subject: [PATCH] chore(release): update release workflow to improve readability and organization - Commented out unused platform configurations for Ubuntu and Windows in the release.yml file to streamline the workflow. - Reformatted the `needs` section in the `Publish draft release` and `Remove release and tag if build failed` jobs for better clarity and consistency. These changes enhance the maintainability of the release workflow by improving its structure and readability. --- .github/workflows/release.yml | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9f6f4b937..aea8246fc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -253,14 +253,14 @@ jobs: args: --target x86_64-apple-darwin target: x86_64-apple-darwin artifact_suffix: x86_64-apple-darwin - - platform: ubuntu-22.04 - args: --target x86_64-unknown-linux-gnu - target: x86_64-unknown-linux-gnu - artifact_suffix: ubuntu - - platform: windows-latest - args: --target x86_64-pc-windows-msvc - target: x86_64-pc-windows-msvc - artifact_suffix: windows + # - platform: ubuntu-22.04 + # args: --target x86_64-unknown-linux-gnu + # target: x86_64-unknown-linux-gnu + # artifact_suffix: ubuntu + # - platform: windows-latest + # args: --target x86_64-pc-windows-msvc + # target: x86_64-pc-windows-msvc + # artifact_suffix: windows env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Keep in sync with DEFAULT_TELEGRAM_BOT_USERNAME_* in channels/controllers/ops.rs @@ -824,7 +824,14 @@ jobs: name: Publish draft release runs-on: ubuntu-latest environment: Production - needs: [prepare-build, create-release, build-desktop, build-docker, publish-updater-manifest] + needs: + [ + prepare-build, + create-release, + build-desktop, + build-docker, + publish-updater-manifest, + ] if: >- needs.prepare-build.outputs.release_enabled == 'true' && needs.build-desktop.result == 'success' @@ -910,7 +917,14 @@ jobs: name: Remove release and tag if build failed runs-on: ubuntu-latest environment: Production - needs: [prepare-build, create-release, build-desktop, build-docker, publish-updater-manifest] + needs: + [ + prepare-build, + create-release, + build-desktop, + build-docker, + publish-updater-manifest, + ] if: >- always() && needs.prepare-build.outputs.release_enabled == 'true'