From b206d11fb2b920344c36864ddd9ef6047a3d6c59 Mon Sep 17 00:00:00 2001 From: Jamil Date: Tue, 4 Jun 2024 09:37:28 -0700 Subject: [PATCH] chore(ci): prevent uploading old artifacts to new release (#5212) Fixes https://github.com/firezone/firezone/issues/5210 --- .github/workflows/_build_artifacts.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/_build_artifacts.yml b/.github/workflows/_build_artifacts.yml index 366c0fa38..095fc21c8 100644 --- a/.github/workflows/_build_artifacts.yml +++ b/.github/workflows/_build_artifacts.yml @@ -218,6 +218,12 @@ jobs: run: | set -xe + # mark:automatic-version + if [ "${{ inputs.tag_name }}" != "1.0.6" ]; then + echo "Version mismatch between artifact and release. Have we bumped versions and rebased since the last release?" + exit 1 + fi + sha256sum $BINARY_DEST_PATH > $BINARY_DEST_PATH.sha256sum.txt gh release upload ${{ inputs.tag_name }} \ ${{ env.BINARY_DEST_PATH }} \