Skip to content

Commit

Permalink
feat: release process specify GLIBC version in filename
Browse files Browse the repository at this point in the history
Signed-off-by: Martichou <m@rtin.fyi>
  • Loading branch information
Martichou committed Mar 3, 2024
1 parent 64c1ca9 commit 9711ab3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,19 @@ jobs:
run: |
cd ./frontend
pnpm build
GLIBC_VER=$(ldd --version | head -n1 | awk '{print $NF}')
for file in ${{ github.workspace }}/frontend/src-tauri/target/release/bundle/*/r-quick-share*; do
extension="${file##*.}"
if [[ ! -f "$file" ]] || [[ "$extension" == AppDir ]]; then
echo "Skipping $file"
continue
fi
new_name="${file%.*}_GLIBC-${GLIBC_VER}.$extension"
mv "$file" "$new_name"
echo "Renamed $file to $new_name"
done
- uses: softprops/action-gh-release@v1
with:
files: ${{ github.workspace }}/frontend/src-tauri/target/release/bundle/*/r-quick-share*
Expand Down

0 comments on commit 9711ab3

Please # to comment.