Skip to content

Commit 89a6f04

Browse files
committed
fix(release): Back to binary download, add executable permissions
Cargo install failed (exit code 101): - Package may not exist in crates.io - Or dependency resolution failed Back to binary download with fixes: - Reinstalled wget download method - Added chmod +x for executable permissions - Ensured version extraction happens before changelog steps - Proper bash variable interpolation Changes: 1. Fixed step order: - Extract version now happens before changelog steps - Prevents undefined VERSION variable 2. Added executable permissions: - chmod +x /usr/local/bin/git-cliff - Ensures git-cliff can be executed 3. Simplified workflow: - Removed Rust toolchain (not needed for binary) - Back to reliable binary download - 2-3 seconds vs 30-60 seconds (cargo install) This should resolve cargo installation failure and ensure git-cliff is installed correctly.
1 parent aa12dbf commit 89a6f04

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,6 @@ jobs:
3030
with:
3131
fetch-depth: 0
3232

33-
- name: Set up Rust
34-
uses: actions-rust-lang/setup-rust-toolchain@v1
35-
with:
36-
toolchain: stable
37-
38-
- name: Install git-cliff
39-
run: |
40-
# Install git-cliff using cargo
41-
cargo install git-cliff
42-
# Verify installation
43-
git-cliff --version
44-
4533
- name: Extract version
4634
id: version
4735
run: |
@@ -69,12 +57,22 @@ jobs:
6957
echo "changelog_exists=false" >> $GITHUB_OUTPUT
7058
echo "No changelog file found, will generate with git-cliff"
7159
60+
- name: Install git-cliff
61+
if: steps.changelog_check.outputs.changelog_exists == 'false'
62+
run: |
63+
# Download and install git-cliff
64+
wget -qO- https://github.com/orhun/git-cliff/releases/latest/download/git-cliff-linux-amd64.tar.gz
65+
tar -xzf git-cliff-linux-amd64.tar.gz
66+
sudo mv git-cliff /usr/local/bin/
67+
chmod +x /usr/local/bin/git-cliff
68+
git-cliff --version
69+
7270
- name: Generate changelog with git-cliff
7371
if: steps.changelog_check.outputs.changelog_exists == 'false'
7472
run: |
7573
VERSION="${{ steps.version.outputs.version }}"
7674
77-
# Generate changelog using git-cliff
75+
# Generate changelog
7876
git-cliff --config cliff.toml --tag "v${VERSION}" --verbose > CHANGELOG.md
7977
8078
- name: Format generated changelog

0 commit comments

Comments
 (0)