Skip to content

Commit 983c780

Browse files
graycreateclaude
andauthored
feat: update release pipeline to use beta track for public testing (#114)
* feat: update release pipeline to use beta track for public testing - Changed default Play Store track from 'internal' to 'beta' - Changed default release status from 'draft' to 'completed' for automatic publishing - Updated release notes format to be more user-friendly for beta testers - Added beta testing information to Play Store upload summary - Enhanced Chinese and English release notes with better formatting This allows releases to be automatically published to the public beta track on Google Play, making it easier for users to test new versions. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> * fix: correct sed pattern matching in release notes formatting Fixed sed patterns to properly match git log output that already includes bullet points. Changed from 's/^fix:/' to 's/^• fix:/' to match the actual format. This ensures commit message prefixes are correctly replaced with user-friendly labels. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>
1 parent b2b64ad commit 983c780

File tree

1 file changed

+31
-13
lines changed

1 file changed

+31
-13
lines changed

.github/workflows/release.yml

Lines changed: 31 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
description: 'Play Store release track'
1717
required: false
1818
type: choice
19-
default: 'internal'
19+
default: 'beta'
2020
options:
2121
- internal
2222
- alpha
@@ -465,9 +465,9 @@ jobs:
465465
TRACK="${{ github.event.inputs.track }}"
466466
STATUS="${{ github.event.inputs.status }}"
467467
else
468-
# Default for tag pushes
469-
TRACK="internal"
470-
STATUS="draft"
468+
# Default for tag pushes - use beta (public test track)
469+
TRACK="beta"
470+
STATUS="completed"
471471
fi
472472
echo "track=$TRACK" >> $GITHUB_OUTPUT
473473
echo "status=$STATUS" >> $GITHUB_OUTPUT
@@ -476,18 +476,28 @@ jobs:
476476
- name: Create whatsnew directory
477477
run: |
478478
mkdir -p whatsnew
479-
480-
# Generate release notes
481-
echo "Release ${{ needs.prepare.outputs.version }}" > whatsnew/whatsnew-en-US
479+
480+
# Generate release notes for public test track
481+
echo "V2er Beta Release ${{ needs.prepare.outputs.version }}" > whatsnew/whatsnew-en-US
482482
echo "" >> whatsnew/whatsnew-en-US
483-
484-
# Get recent commits
485-
git log --pretty=format:"• %s" -5 >> whatsnew/whatsnew-en-US
486-
483+
echo "What's new in this beta:" >> whatsnew/whatsnew-en-US
484+
echo "" >> whatsnew/whatsnew-en-US
485+
486+
# Get recent commits formatted for users
487+
git log --pretty=format:"• %s" -5 | sed 's/^• fix:/• Fixed:/g' | sed 's/^• feat:/• New:/g' | sed 's/^• chore:/• Updated:/g' >> whatsnew/whatsnew-en-US
488+
echo "" >> whatsnew/whatsnew-en-US
489+
echo "" >> whatsnew/whatsnew-en-US
490+
echo "Thank you for testing! Please report any issues on GitHub." >> whatsnew/whatsnew-en-US
491+
487492
# Chinese version
488-
echo "版本 ${{ needs.prepare.outputs.version }}" > whatsnew/whatsnew-zh-CN
493+
echo "V2er 测试版 ${{ needs.prepare.outputs.version }}" > whatsnew/whatsnew-zh-CN
494+
echo "" >> whatsnew/whatsnew-zh-CN
495+
echo "此测试版的新内容:" >> whatsnew/whatsnew-zh-CN
496+
echo "" >> whatsnew/whatsnew-zh-CN
497+
git log --pretty=format:"• %s" -5 | sed 's/^• fix:/• 修复:/g' | sed 's/^• feat:/• 新增:/g' | sed 's/^• chore:/• 更新:/g' >> whatsnew/whatsnew-zh-CN
498+
echo "" >> whatsnew/whatsnew-zh-CN
489499
echo "" >> whatsnew/whatsnew-zh-CN
490-
git log --pretty=format:"• %s" -5 >> whatsnew/whatsnew-zh-CN
500+
echo "感谢您的测试!如遇问题请在GitHub上反馈。" >> whatsnew/whatsnew-zh-CN
491501
492502
- name: Upload to Play Store (with debug symbols)
493503
if: steps.find-files.outputs.symbols_path != ''
@@ -525,6 +535,14 @@ jobs:
525535
echo "- **Track**: ${{ steps.release-config.outputs.track }}" >> $GITHUB_STEP_SUMMARY
526536
echo "- **Status**: ${{ steps.release-config.outputs.status }}" >> $GITHUB_STEP_SUMMARY
527537
echo "- **Package**: me.ghui.v2er" >> $GITHUB_STEP_SUMMARY
538+
echo "" >> $GITHUB_STEP_SUMMARY
539+
540+
if [ "${{ steps.release-config.outputs.track }}" = "beta" ]; then
541+
echo "### Beta Testing" >> $GITHUB_STEP_SUMMARY
542+
echo "This release is now available for beta testing on Google Play." >> $GITHUB_STEP_SUMMARY
543+
echo "Beta testers can install it from: [Google Play Beta](https://play.google.com/store/apps/details?id=me.ghui.v2er)" >> $GITHUB_STEP_SUMMARY
544+
fi
545+
528546
echo "" >> $GITHUB_STEP_SUMMARY
529547
echo "[View in Play Console](https://play.google.com/console/u/0/app/me.ghui.v2er)" >> $GITHUB_STEP_SUMMARY
530548

0 commit comments

Comments
 (0)