diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index dbb126fe..f57a6fcc 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -36,19 +36,9 @@ jobs: toolchain: stable - name: Build run: cargo build --release --verbose - - name: Upload linutil binary - uses: actions/upload-artifact@v4 - with: - name: linutil - path: target/release/linutil - - name: Download linutil binary - uses: actions/download-artifact@v4 - with: - name: linutil - path: . - name: Replace linutil binary uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: "Replace linutil binary" - file_pattern: linutil + file_pattern: /target/release/linutil commit_options: "--allow-empty --no-verify" \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index 77c8976c..8855d87f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,3 +11,7 @@ oneshot = "0.1.8" portable-pty = "0.8.1" ratatui = "0.27.0" tui-term = "0.1.12" + +[[bin]] +name = "linutil" +path = "src/main.rs" \ No newline at end of file diff --git a/linutil b/linutil deleted file mode 100755 index cd96fcc3..00000000 Binary files a/linutil and /dev/null differ