From d0ca40bf5861927eacb690c6f38df118b5f28c5f Mon Sep 17 00:00:00 2001 From: Gadfly Date: Thu, 20 Jun 2024 11:17:14 +0800 Subject: [PATCH] ci: Remove the publish directory when packaging tarball --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6e856ec0..204c1afb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,7 +45,7 @@ jobs: - name: Publish run: dotnet publish src/SourceGit.csproj -c Release -o publish -r osx-x64 -p:PublishAot=true -p:PublishTrimmed=true -p:TrimMode=link --self-contained - name: Packing Program - run: tar -cvf sourcegit.osx-x64.tar publish/ + run: tar -cvf sourcegit.osx-x64.tar -C publish/ . - name: Upload Artifact uses: actions/upload-artifact@v4 with: @@ -68,7 +68,7 @@ jobs: - name: Publish run: dotnet publish src/SourceGit.csproj -c Release -o publish -r osx-arm64 -p:PublishAot=true -p:PublishTrimmed=true -p:TrimMode=link --self-contained - name: Packing Program - run: tar -cvf sourcegit.osx-arm64.tar publish/ + run: tar -cvf sourcegit.osx-arm64.tar -C publish/ . - name: Upload Artifact uses: actions/upload-artifact@v4 with: @@ -93,7 +93,7 @@ jobs: - name: Rename Executable File run: mv publish/SourceGit publish/sourcegit - name: Packing Program - run: tar -cvf sourcegit.linux-x64.tar publish/ + run: tar -cvf sourcegit.linux-x64.tar -C publish/ . - name: Upload Artifact uses: actions/upload-artifact@v4 with: