ci: tar artifact to keep permissions

This commit is contained in:
Aikawa Yataro 2024-08-03 13:50:57 +00:00
parent 073b5aaf9e
commit 822d6ec88e
No known key found for this signature in database
GPG key ID: 1C5D95FB10179404
2 changed files with 11 additions and 2 deletions

View file

@ -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:

View file

@ -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: