From 8f770f9bdfd4c8f05969ea203ec66489bc24bb31 Mon Sep 17 00:00:00 2001 From: Lana Begunova <70295997+lana-20@users.noreply.github.com> Date: Fri, 30 Oct 2026 22:15:43 -0700 Subject: [PATCH] CI: the release workflow builds every pull request and every push to main Until now a pull request ran nothing unless it changed the release workflow itself, so a change that broke a build or a unit test merged green and failed at the next tag. Every pull request and every push to main now builds everything, the unit tests on the way, and publishes nothing; publishing stays with v* tags. A pull request's earlier run is canceled by its next commit, and a failure on main opens an issue through failure-issue.yml. --- .github/workflows/release.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 95c90d5..01899ab 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,20 +9,27 @@ # runner's debug key and the iOS and tvOS builds are for the simulator, # unsigned: an app under test, never published to a store. # -# A pull request that changes this file builds everything and publishes -# nothing. +# It is also the repository's CI: every pull request and every push to main +# builds everything and publishes nothing, so a change that breaks a build +# or a unit test fails before it is merged rather than at the next tag. A +# failure on main opens an issue (failure-issue.yml). name: Release on: push: + branches: [main] tags: ['v*'] pull_request: - paths: ['.github/workflows/release.yml'] workflow_dispatch: permissions: contents: read +# A pull request's earlier run is superseded by its newest commit. +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: android: runs-on: ubuntu-latest @@ -78,7 +85,7 @@ jobs: with: path: dist merge-multiple: true - - run: sha256sum * > SHA256SUMS + - run: sha256sum -- * > SHA256SUMS working-directory: dist - run: gh release create "$GITHUB_REF_NAME" dist/* --repo "$GITHUB_REPOSITORY" --title "Morpho Market $GITHUB_REF_NAME" --generate-notes env: