From aead8945c6824d91c4bc106d05c24fc132328ada Mon Sep 17 00:00:00 2001 From: Leo Borai Date: Tue, 23 Dec 2025 19:20:57 +0100 Subject: [PATCH 1/2] chore(cd): install binaries required for build --- .github/workflows/release.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bb1efa8a..291c605b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -186,6 +186,12 @@ jobs: env: CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }} + - name: Install Rust Binaries + run: | + cargo binstall -y --force cargo-tag + cargo binstall -y --force leptosfmt + cargo binstall -y --force trunk + - name: Prep Assets and Binary run: make release From a6b943840b0c87704993f17ece129d502ed25f61 Mon Sep 17 00:00:00 2001 From: Leo Borai Date: Tue, 23 Dec 2025 19:27:29 +0100 Subject: [PATCH 2/2] chore(cd): use commit short sha --- .github/workflows/release.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 291c605b..8709b599 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -106,6 +106,9 @@ jobs: cargo binstall -y --force leptosfmt cargo binstall -y --force trunk + - name: Retrieve Git Commit SHA + run: echo "GIT_COMMIT_SHA7=$(git rev-parse --short ${{ github.sha }}) >> $GITHUB_ENV + - name: Retrieve Version run: | git config --global user.name 'github-actions[bot]' @@ -114,7 +117,7 @@ jobs: if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then echo "CRATE_VERSION=$(cargo tag --no-tag --no-commit -p=v ${{ inputs.version }})" >> $GITHUB_ENV else - echo "CRATE_VERSION=$(cargo tag --no-tag --no-commit -p=v prerelease pre.$(date +%Y%m%d%H%M%S))" >> $GITHUB_ENV + echo "CRATE_VERSION=$(cargo tag --no-tag --no-commit -p=v prerelease pre.$GIT_COMMIT_SHA7)" >> $GITHUB_ENV fi - name: Build binary @@ -166,8 +169,10 @@ jobs: uses: cargo-bins/cargo-binstall@main - name: Install Rust Binaries - run: | - cargo binstall -y --force cargo-tag + run: cargo binstall -y --force cargo-tag + + - name: Retrieve Git Commit SHA + run: echo "GIT_COMMIT_SHA7=$(git rev-parse --short ${{ github.sha }}) >> $GITHUB_ENV - name: Commit Version Bump run: | @@ -177,7 +182,7 @@ jobs: if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then echo "CRATE_VERSION=$(cargo tag -p=v ${{ inputs.version }})" >> $GITHUB_ENV else - echo "CRATE_VERSION=$(cargo tag -p=v prerelease pre.$(date +%Y%m%d%H%M%S))" >> $GITHUB_ENV + echo "CRATE_VERSION=$(cargo tag -p=v prerelease pre.$GIT_COMMIT_SHA7)" >> $GITHUB_ENV fi git push origin main --follow-tags @@ -188,7 +193,6 @@ jobs: - name: Install Rust Binaries run: | - cargo binstall -y --force cargo-tag cargo binstall -y --force leptosfmt cargo binstall -y --force trunk