mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -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
|
- name: Rename executable file
|
||||||
if: ${{ startsWith(matrix.runtime, 'linux-') }}
|
if: ${{ startsWith(matrix.runtime, 'linux-') }}
|
||||||
run: mv publish/SourceGit publish/sourcegit
|
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
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|
7
.github/workflows/package.yml
vendored
7
.github/workflows/package.yml
vendored
|
@ -79,12 +79,15 @@ jobs:
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: sourcegit.${{ matrix.runtime }}
|
name: sourcegit.${{ matrix.runtime }}
|
||||||
path: build/SourceGit
|
path: build
|
||||||
- name: Package
|
- name: Package
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ inputs.version }}
|
VERSION: ${{ inputs.version }}
|
||||||
RUNTIME: ${{ matrix.runtime }}
|
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
|
- name: Upload package artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue