mirror of
https://github.com/nezhahq/nezha.git
synced 2025-02-02 01:28:13 -05:00
ci: fix arm64 path parsing (#468)
This commit is contained in:
parent
c20dfdc7a3
commit
2590815a6c
21
.github/workflows/release.yml
vendored
21
.github/workflows/release.yml
vendored
@ -17,7 +17,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,12 +44,12 @@ jobs:
|
|||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: "1.23.x"
|
go-version: "1.23.x"
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
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
|
||||||
@ -113,7 +112,7 @@ jobs:
|
|||||||
name: Release Docker images
|
name: Release Docker images
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Download artifacts
|
- name: Download artifacts
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
@ -130,7 +129,7 @@ jobs:
|
|||||||
export TAG_NAME=$(echo ${GITHUB_REF#refs/tags/})
|
export TAG_NAME=$(echo ${GITHUB_REF#refs/tags/})
|
||||||
echo "tag=$TAG_NAME" >> $GITHUB_OUTPUT
|
echo "tag=$TAG_NAME" >> $GITHUB_OUTPUT
|
||||||
id: extract_branch
|
id: extract_branch
|
||||||
|
|
||||||
- name: Log into GHCR
|
- name: Log into GHCR
|
||||||
uses: docker/login-action@master
|
uses: docker/login-action@master
|
||||||
with:
|
with:
|
||||||
|
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