mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
ci: tar artifact to keep permissions
This commit is contained in:
parent
073b5aaf9e
commit
822d6ec88e
2 changed files with 11 additions and 2 deletions
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
@ -60,6 +60,12 @@ jobs:
|
|||
- name: Rename executable file
|
||||
if: ${{ startsWith(matrix.runtime, 'linux-') }}
|
||||
run: mv publish/SourceGit publish/sourcegit
|
||||
- name: Tar artifact
|
||||
if: ${{ startsWith(matrix.runtime, 'linux-') }}
|
||||
run: |
|
||||
tar -cvf "sourcegit.${{ matrix.runtime }}.tar" -C publish .
|
||||
rm -r publish/*
|
||||
mv "sourcegit.${{ matrix.runtime }}.tar" publish
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
|
7
.github/workflows/package.yml
vendored
7
.github/workflows/package.yml
vendored
|
@ -79,12 +79,15 @@ jobs:
|
|||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: sourcegit.${{ matrix.runtime }}
|
||||
path: build/SourceGit
|
||||
path: build
|
||||
- name: Package
|
||||
env:
|
||||
VERSION: ${{ inputs.version }}
|
||||
RUNTIME: ${{ matrix.runtime }}
|
||||
run: ./build/ci/package.linux.sh
|
||||
run: |
|
||||
mkdir build/SourceGit
|
||||
tar -xf "build/sourcegit.${{ matrix.runtime }}.tar" -C build/SourceGit
|
||||
./build/ci/package.linux.sh
|
||||
- name: Upload package artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
|
Loading…
Reference in a new issue