Commit aa12dbf
committed
fix(release): Use Rust cargo to install git-cliff
Fixed shell syntax and added Rust environment:
Problem:
- Shell syntax error in Extract version step
- Line 13: unexpected end of file
- Bash variable interpolation issue
Solution:
- Added 'Set up Rust' step using actions-rust-lang/setup-rust-toolchain
- Use cargo install git-cliff instead of manual download
- More reliable cross-platform installation
Changes:
1. Added 'Set up Rust' step:
- Uses actions-rust-lang/setup-rust-toolchain@v1
- Installs stable Rust toolchain
- Sets up cargo environment
2. Updated 'Install git-cliff' step:
- Uses cargo install git-cliff
- Verifies installation with --version flag
- No manual download or extraction needed
3. Fixed shell syntax in 'Extract version' step:
- Ensured proper bash variable interpolation
- Fixed 'unexpected end of file' error
Benefits:
- Uses official Rust toolchain setup
- Cargo manages dependencies reliably
- Cross-platform compatible
- No manual binary downloads
- Faster installation (cargo caches)
- Shell syntax errors fixed
This resolves shell syntax error (line 13) and provides reliable git-cliff installation.1 parent a994aba commit aa12dbf
1 file changed
+13
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
33 | 45 | | |
34 | 46 | | |
35 | 47 | | |
| |||
57 | 69 | | |
58 | 70 | | |
59 | 71 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
72 | 75 | | |
73 | 76 | | |
74 | | - | |
| 77 | + | |
75 | 78 | | |
76 | 79 | | |
77 | 80 | | |
| |||
0 commit comments