fix: git sha for cli
This commit is contained in:
1 parent
d1ead872b1
commit
bfcc111817
3 files changed
+151
-25
No files matched your search
@@ -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'
|
||||
|
||||
Reference in new issue
Block a user