Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ahqsoftwares committed Nov 18, 2024
1 parent aad7ed7 commit c67bce2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
if: matrix.runner != 'windows-latest'
with:
file: ./lead_init/target/release/lead_init
file: ./lead_init/target/${{ matrix.target }}/release/lead_init
asset_name: lead_init_${{ matrix.target }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.tag.outputs.TAG_NAME }}
Expand All @@ -173,7 +173,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
if: matrix.runner == 'windows-latest'
with:
file: ./lead_init/target/release/lead_init.exe
file: ./lead_init/target/${{ matrix.target }}/release/lead_init.exe
asset_name: lead_init_${{ matrix.target }}.exe
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.tag.outputs.TAG_NAME }}
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ fn main() {
#[cfg(debug_assertions)]
let typ = "debug";

let fs_dir = format!("{}/target/{}", path.to_string_lossy(), &typ);
let fs_dir = format!("{}/target/{}/{}", path.to_string_lossy(), target, &typ);

for file in fs::read_dir(fs_dir).unwrap() {
let file = file.unwrap();
Expand Down

0 comments on commit c67bce2

Please sign in to comment.