fix: git sha for cli

This commit is contained in:
Jonathan Kelley committed 2026-05-07 16:59:46 -07:00
1 parent d1ead872b1
commit bfcc111817
3 files changed
+151 -25

No files matched your search

+12
View File
@@ -70,6 +70,18 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v5
with:
# Build from the tag we're releasing, not the branch the workflow
# was dispatched from. Without this the binary's Cargo.toml version
# and embedded SHA reflect whatever was on the dispatch branch.
ref: refs/tags/${{ github.event.inputs.post }}
- name: Resolve release commit SHA
shell: bash
run: |
sha=$(git rev-parse HEAD)
echo "DIOXUS_CLI_GIT_SHA=$sha" >> "$GITHUB_ENV"
echo "DIOXUS_CLI_GIT_SHA_SHORT=${sha:0:7}" >> "$GITHUB_ENV"
- name: Install openssl on macos
if: matrix.platform.os == 'macos-latest'