Skip to content

Commit 822d6ec

Browse files
committed
ci: tar artifact to keep permissions
1 parent 073b5aa commit 822d6ec

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ jobs:
6060
- name: Rename executable file
6161
if: ${{ startsWith(matrix.runtime, 'linux-') }}
6262
run: mv publish/SourceGit publish/sourcegit
63+
- name: Tar artifact
64+
if: ${{ startsWith(matrix.runtime, 'linux-') }}
65+
run: |
66+
tar -cvf "sourcegit.${{ matrix.runtime }}.tar" -C publish .
67+
rm -r publish/*
68+
mv "sourcegit.${{ matrix.runtime }}.tar" publish
6369
- name: Upload artifact
6470
uses: actions/upload-artifact@v4
6571
with:

.github/workflows/package.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,15 @@ jobs:
7979
uses: actions/download-artifact@v4
8080
with:
8181
name: sourcegit.${{ matrix.runtime }}
82-
path: build/SourceGit
82+
path: build
8383
- name: Package
8484
env:
8585
VERSION: ${{ inputs.version }}
8686
RUNTIME: ${{ matrix.runtime }}
87-
run: ./build/ci/package.linux.sh
87+
run: |
88+
mkdir build/SourceGit
89+
tar -xf "build/sourcegit.${{ matrix.runtime }}.tar" -C build/SourceGit
90+
./build/ci/package.linux.sh
8891
- name: Upload package artifacts
8992
uses: actions/upload-artifact@v4
9093
with:

0 commit comments

Comments
 (0)