Skip to content

Commit 63c9273

Browse files
committed
Fix release.yml
1 parent 1c0cda6 commit 63c9273

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ jobs:
2323
with:
2424
submodules: recursive
2525

26+
- name: Extract crate information
27+
shell: bash
28+
run: |
29+
# Get the project version from mix.exs
30+
echo "PROJECT_VERSION=$(sed -n 's/^ @version "\(.*\)"/\1/p' mix.exs | head -n1)" >> $GITHUB_ENV
31+
2632
- name: Install Rust toolchain
2733
uses: dtolnay/rust-toolchain@stable
2834
with:
@@ -35,7 +41,7 @@ jobs:
3541
nif-version: ${{ matrix.nif }}
3642
project-dir: "native/baml_elixir"
3743
project-name: baml_elixir
38-
project-version: ${{ github.ref_name }}
44+
project-version: ${{ env.PROJECT_VERSION }}
3945
target: ${{ matrix.job.target }}
4046
use-cross: ${{ matrix.job.use-cross }}
4147

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defmodule BamlElixir.MixProject do
22
use Mix.Project
33

4-
@version "0.1.0-pre-9"
4+
@version "0.1.0-pre-11"
55

66
def project do
77
[

0 commit comments

Comments
 (0)