mirror of
https://github.com/nezhahq/nezha.git
synced 2025-02-02 01:28:13 -05:00
ci: fix arm64 path parsing (#487)
This commit is contained in:
parent
1f663e1fd5
commit
1a827e04f4
19
.github/workflows/release.yml
vendored
19
.github/workflows/release.yml
vendored
@ -19,7 +19,7 @@ jobs:
|
|||||||
goarch: s390x
|
goarch: s390x
|
||||||
- goos: linux
|
- goos: linux
|
||||||
goarch: arm64
|
goarch: arm64
|
||||||
|
|
||||||
name: Build artifacts
|
name: Build artifacts
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
@ -44,7 +44,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
go install github.com/swaggo/swag/cmd/swag@latest
|
go install github.com/swaggo/swag/cmd/swag@latest
|
||||||
swag init --pd -d . -g ./cmd/dashboard/main.go -o ./cmd/dashboard/docs --parseGoList=false
|
swag init --pd -d . -g ./cmd/dashboard/main.go -o ./cmd/dashboard/docs --parseGoList=false
|
||||||
|
|
||||||
- name: Build with tag
|
- name: Build with tag
|
||||||
if: contains(github.ref, 'refs/tags/')
|
if: contains(github.ref, 'refs/tags/')
|
||||||
uses: goreleaser/goreleaser-action@v6
|
uses: goreleaser/goreleaser-action@v6
|
||||||
@ -54,7 +54,7 @@ jobs:
|
|||||||
GOARM: ${{ matrix.goarm }}
|
GOARM: ${{ matrix.goarm }}
|
||||||
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: Build snapshot
|
- name: Build snapshot
|
||||||
@ -66,7 +66,7 @@ jobs:
|
|||||||
GOARM: ${{ matrix.goarm }}
|
GOARM: ${{ matrix.goarm }}
|
||||||
with:
|
with:
|
||||||
distribution: goreleaser
|
distribution: goreleaser
|
||||||
version: '~> v2'
|
version: "~> v2"
|
||||||
args: build --single-target --clean --skip=validate --snapshot
|
args: build --single-target --clean --skip=validate --snapshot
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
@ -89,12 +89,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
|
||||||
|
1
.github/workflows/sync-release.yml
vendored
1
.github/workflows/sync-release.yml
vendored
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user