ci: Remove the publish directory when packaging tarball

This commit is contained in:
Gadfly 2024-06-20 11:17:14 +08:00
parent c1c27be39a
commit d0ca40bf58
No known key found for this signature in database

View file

@ -45,7 +45,7 @@ jobs:
- name: Publish - 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 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 - name: Packing Program
run: tar -cvf sourcegit.osx-x64.tar publish/ run: tar -cvf sourcegit.osx-x64.tar -C publish/ .
- name: Upload Artifact - name: Upload Artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
@ -68,7 +68,7 @@ jobs:
- name: Publish - 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 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 - name: Packing Program
run: tar -cvf sourcegit.osx-arm64.tar publish/ run: tar -cvf sourcegit.osx-arm64.tar -C publish/ .
- name: Upload Artifact - name: Upload Artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
@ -93,7 +93,7 @@ jobs:
- name: Rename Executable File - name: Rename Executable File
run: mv publish/SourceGit publish/sourcegit run: mv publish/SourceGit publish/sourcegit
- name: Packing Program - name: Packing Program
run: tar -cvf sourcegit.linux-x64.tar publish/ run: tar -cvf sourcegit.linux-x64.tar -C publish/ .
- name: Upload Artifact - name: Upload Artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with: