ci: fix arm64 path parsing (#468)

This commit is contained in:
UUBulb 2024-11-05 22:54:02 +08:00 committed by GitHub
parent c20dfdc7a3
commit 2590815a6c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 11 deletions

View File

@ -49,7 +49,7 @@ jobs:
uses: goreleaser/goreleaser-action@v6 uses: goreleaser/goreleaser-action@v6
with: with:
distribution: goreleaser distribution: goreleaser
version: '~> v2' version: "~> v2"
args: build --single-target --clean --skip=validate args: build --single-target --clean --skip=validate
- name: Upload artifacts - name: Upload artifacts
@ -72,12 +72,11 @@ jobs:
- name: Archive and compress binaries - name: Archive and compress binaries
run: | run: |
for file in assets/*/*/*; do find assets/*/*/* -type f | while read -r file; do
if [ -f "$file" ]; then dir=$(dirname "$file")
chmod +x "$file" filename=$(basename "$file")
export fileWithoutExt=${file%.*} fileWithoutExt="${filename%.*}"
zip -jr "$fileWithoutExt.zip" "$file" zip -jr "$dir/$fileWithoutExt.zip" "$file"
fi
done done
- name: Release - name: Release

View File

@ -6,6 +6,7 @@ on:
jobs: jobs:
sync-release-to-gitee: sync-release-to-gitee:
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 30
env: env:
GITEE_TOKEN: ${{ secrets.GITEE_TOKEN }} GITEE_TOKEN: ${{ secrets.GITEE_TOKEN }}
steps: steps: