Skip to content

Commit 78a226a

Browse files
committed
Fix tar command path in GitHub Actions workflow
1 parent e1f6eca commit 78a226a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/cd.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ jobs:
3030
run: cargo build --release --target x86_64-unknown-linux-gnu
3131

3232
- name: Package Binary
33-
run: tar czf target/*/release/git-ai-*.tar.gz git-*
33+
run: tar czf git-ai.tar.gz -C target/*/release git-ai git-ai-hook
3434

3535
- name: Upload Binary
3636
uses: actions/upload-artifact@v4
3737
with:
3838
name: git-ai-x86_64-unknown-linux-gnu.tar.gz
39-
path: git-ai-*.tar.gz
39+
path: git-ai.tar.gz
4040

4141
build-arm:
4242
runs-on: macos-latest
@@ -50,13 +50,13 @@ jobs:
5050
run: cargo build --release --target aarch64-apple-darwin
5151

5252
- name: Package Binary
53-
run: tar czf target/*/release/git-ai-*.tar.gz git-*
53+
run: tar czf git-ai.tar.gz -C target/*/release git-ai git-ai-hook
5454

5555
- name: Upload Binary
5656
uses: actions/upload-artifact@v4
5757
with:
5858
name: git-ai-aarch64-apple-darwin.tar.gz
59-
path: git-ai-*.tar.gz
59+
path: git-ai.tar.gz
6060

6161
release:
6262
needs: [build-x86, build-arm]

0 commit comments

Comments
 (0)