Skip to content

Commit

Permalink
ci: fix arm64 path parsing (#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
uubulb authored Nov 28, 2024
1 parent 1f663e1 commit 1a827e0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
goarch: s390x
- goos: linux
goarch: arm64

name: Build artifacts
runs-on: ubuntu-latest
container:
Expand All @@ -44,7 +44,7 @@ jobs:
run: |
go install github.com/swaggo/swag/cmd/swag@latest
swag init --pd -d . -g ./cmd/dashboard/main.go -o ./cmd/dashboard/docs --parseGoList=false
- name: Build with tag
if: contains(github.ref, 'refs/tags/')
uses: goreleaser/goreleaser-action@v6
Expand All @@ -54,7 +54,7 @@ jobs:
GOARM: ${{ matrix.goarm }}
with:
distribution: goreleaser
version: '~> v2'
version: "~> v2"
args: build --single-target --clean --skip=validate

- name: Build snapshot
Expand All @@ -66,7 +66,7 @@ jobs:
GOARM: ${{ matrix.goarm }}
with:
distribution: goreleaser
version: '~> v2'
version: "~> v2"
args: build --single-target --clean --skip=validate --snapshot

- name: Upload artifacts
Expand All @@ -89,12 +89,11 @@ jobs:

- name: Archive and compress binaries
run: |
for file in assets/*/*/*; do
if [ -f "$file" ]; then
chmod +x "$file"
export fileWithoutExt=${file%.*}
zip -jr "$fileWithoutExt.zip" "$file"
fi
find assets/*/*/* -type f | while read -r file; do
dir=$(dirname "$file")
filename=$(basename "$file")
fileWithoutExt="${filename%.*}"
zip -jr "$dir/$fileWithoutExt.zip" "$file"
done
- name: Release
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/sync-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
jobs:
sync-release-to-gitee:
runs-on: ubuntu-latest
timeout-minutes: 30
env:
GITEE_TOKEN: ${{ secrets.GITEE_TOKEN }}
steps:
Expand Down

0 comments on commit 1a827e0

Please sign in to comment.