Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d8be496216 | |||
| 1c6bbe04f1 |
@@ -19,11 +19,11 @@ env:
|
|||||||
echo -e 'https://mirrors.aliyun.com/alpine/v3.20/main/\nhttps://mirrors.aliyun.com/alpine/v3.20/community/' > /etc/apk/repositories
|
echo -e 'https://mirrors.aliyun.com/alpine/v3.20/main/\nhttps://mirrors.aliyun.com/alpine/v3.20/community/' > /etc/apk/repositories
|
||||||
apk add git bash
|
apk add git bash
|
||||||
git clone https://hub.gaomia.site/titor/HxClaw.git /workspace/hxclaw
|
git clone https://hub.gaomia.site/titor/HxClaw.git /workspace/hxclaw
|
||||||
cp -r /workspace/hxclaw/* /workspace/hxclaw/
|
|
||||||
cp -r /workspace/hxclaw/.* /workspace/hxclaw/ 2>/dev/null || true
|
|
||||||
|
|
||||||
- name: Download dependencies
|
- name: Download dependencies
|
||||||
run: go mod download
|
run: |
|
||||||
|
cd /workspace/hxclaw
|
||||||
|
go mod download
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
@@ -37,7 +37,9 @@ env:
|
|||||||
done
|
done
|
||||||
|
|
||||||
- name: Checksums
|
- name: Checksums
|
||||||
run: sha256sum hxclaw-* > checksums.txt
|
run: |
|
||||||
|
cd /workspace/hxclaw
|
||||||
|
sha256sum hxclaw-* > checksums.txt
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
env:
|
env:
|
||||||
@@ -47,6 +49,8 @@ env:
|
|||||||
echo -e 'https://mirrors.aliyun.com/alpine/v3.20/main/\nhttps://mirrors.aliyun.com/alpine/v3.20/community/' > /etc/apk/repositories
|
echo -e 'https://mirrors.aliyun.com/alpine/v3.20/main/\nhttps://mirrors.aliyun.com/alpine/v3.20/community/' > /etc/apk/repositories
|
||||||
apk add curl jq
|
apk add curl jq
|
||||||
|
|
||||||
|
cd /workspace/hxclaw
|
||||||
|
|
||||||
TAG_NAME="${GITHUB_REF#refs/tags/}"
|
TAG_NAME="${GITHUB_REF#refs/tags/}"
|
||||||
|
|
||||||
RELEASE_BODY=$(git tag -l --format='%(contents)' "$TAG_NAME" 2>/dev/null || git log -1 --format="%s%n%n%b" "$TAG_NAME" 2>/dev/null || echo "Release $TAG_NAME")
|
RELEASE_BODY=$(git tag -l --format='%(contents)' "$TAG_NAME" 2>/dev/null || git log -1 --format="%s%n%n%b" "$TAG_NAME" 2>/dev/null || echo "Release $TAG_NAME")
|
||||||
|
|||||||
Reference in New Issue
Block a user