Skip to content

Commit 6c9f7e6

Browse files
authored
Merge pull request sourcegit-scm#193 from gadfly3173/ci/package-tar
ci: Remove the publish directory when packaging tarball
2 parents c1c27be + d0ca40b commit 6c9f7e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- name: Publish
4646
run: dotnet publish src/SourceGit.csproj -c Release -o publish -r osx-x64 -p:PublishAot=true -p:PublishTrimmed=true -p:TrimMode=link --self-contained
4747
- name: Packing Program
48-
run: tar -cvf sourcegit.osx-x64.tar publish/
48+
run: tar -cvf sourcegit.osx-x64.tar -C publish/ .
4949
- name: Upload Artifact
5050
uses: actions/upload-artifact@v4
5151
with:
@@ -68,7 +68,7 @@ jobs:
6868
- name: Publish
6969
run: dotnet publish src/SourceGit.csproj -c Release -o publish -r osx-arm64 -p:PublishAot=true -p:PublishTrimmed=true -p:TrimMode=link --self-contained
7070
- name: Packing Program
71-
run: tar -cvf sourcegit.osx-arm64.tar publish/
71+
run: tar -cvf sourcegit.osx-arm64.tar -C publish/ .
7272
- name: Upload Artifact
7373
uses: actions/upload-artifact@v4
7474
with:
@@ -93,7 +93,7 @@ jobs:
9393
- name: Rename Executable File
9494
run: mv publish/SourceGit publish/sourcegit
9595
- name: Packing Program
96-
run: tar -cvf sourcegit.linux-x64.tar publish/
96+
run: tar -cvf sourcegit.linux-x64.tar -C publish/ .
9797
- name: Upload Artifact
9898
uses: actions/upload-artifact@v4
9999
with:

0 commit comments

Comments
 (0)