mirror of
https://github.com/RedWizardsLab/EchoHub.git
synced 2026-09-04 00:26:07 +02:00
feat: Enhance server connection handling with exponential backoff and improved reconnection logic
This commit is contained in:
@@ -47,8 +47,8 @@ jobs:
|
||||
env:
|
||||
BEFORE: ${{ github.event.before }}
|
||||
run: |
|
||||
if [ "$BEFORE" = "0000000000000000000000000000000000000000" ]; then
|
||||
# Initial push — treat everything as changed
|
||||
if [ -z "$BEFORE" ] || [ "$BEFORE" = "0000000000000000000000000000000000000000" ]; then
|
||||
# workflow_dispatch or initial push — treat everything as changed
|
||||
echo "src_changed=true" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
SRC_CHANGED=$(git diff --name-only "$BEFORE" HEAD -- 'src/' | wc -l)
|
||||
@@ -92,6 +92,8 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup .NET 10
|
||||
uses: actions/setup-dotnet@v4
|
||||
@@ -161,12 +163,44 @@ jobs:
|
||||
zip -r ../EchoHub-Client-osx-x64.zip client-osx-x64/
|
||||
zip -r ../EchoHub-Client-osx-arm64.zip client-osx-arm64/
|
||||
|
||||
- name: Build release notes
|
||||
if: steps.check_release.outputs.exists == 'false'
|
||||
id: notes
|
||||
run: |
|
||||
TAG="${{ steps.version.outputs.tag }}"
|
||||
CHANGELOG_URL="https://huebyte.github.io/EchoHub/changelog/${TAG}.html"
|
||||
REPO="https://github.com/${{ github.repository }}"
|
||||
PREV_TAG=$(git tag --sort=-v:refname | grep -v "^${TAG}$" | head -n 1)
|
||||
|
||||
{
|
||||
echo "body<<RELEASE_EOF"
|
||||
echo "📋 **[Full Changelog](${CHANGELOG_URL})**"
|
||||
echo ""
|
||||
echo "---"
|
||||
echo ""
|
||||
echo "### Commits"
|
||||
echo ""
|
||||
if [ -n "$PREV_TAG" ]; then
|
||||
git log "${PREV_TAG}..${TAG}" --pretty=format:"- %s (%h)" --no-merges
|
||||
else
|
||||
git log "${TAG}" --pretty=format:"- %s (%h)" --no-merges
|
||||
fi
|
||||
echo ""
|
||||
echo ""
|
||||
if [ -n "$PREV_TAG" ]; then
|
||||
echo "*Version diff: [${PREV_TAG}...${TAG}](${REPO}/compare/${PREV_TAG}...${TAG})*"
|
||||
else
|
||||
echo "*Version diff: [${TAG}](${REPO}/commits/${TAG})*"
|
||||
fi
|
||||
echo "RELEASE_EOF"
|
||||
} >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Create GitHub Release
|
||||
if: steps.check_release.outputs.exists == 'false'
|
||||
run: |
|
||||
gh release create "${{ steps.version.outputs.tag }}" \
|
||||
--title "EchoHub ${{ steps.version.outputs.tag }}" \
|
||||
--generate-notes \
|
||||
--notes "${{ steps.notes.outputs.body }}" \
|
||||
EchoHub-Server-win-x64.zip \
|
||||
EchoHub-Server-linux-x64.zip \
|
||||
EchoHub-Server-osx-x64.zip \
|
||||
|
||||
Reference in New Issue
Block a user