Skip to content

Commit 61c4ca5

Browse files
committed
feat: configure releases as alpha prerelease with custom branding
- Mark releases as prerelease with "(Alpha)" label - Add custom release body with build info (commit, branch, run number, date) - Add "-alpha" suffix to all build artifact filenames - Update tag message to "Alpha Release" - Add alpha stability warning to release notes
1 parent a1feb28 commit 61c4ca5

File tree

1 file changed

+26
-15
lines changed

1 file changed

+26
-15
lines changed

.github/workflows/release.yml

Lines changed: 26 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,28 @@ jobs:
5555
run: |
5656
git config user.name github-actions
5757
git config user.email [email protected]
58-
git tag -a v${{ needs.check-version.outputs.version }} -m "Release v${{ needs.check-version.outputs.version }}"
58+
git tag -a v${{ needs.check-version.outputs.version }} -m "Alpha Release v${{ needs.check-version.outputs.version }}"
5959
git push origin v${{ needs.check-version.outputs.version }}
6060
6161
- name: Create GitHub Release
6262
uses: softprops/action-gh-release@v1
6363
with:
6464
tag_name: v${{ needs.check-version.outputs.version }}
65-
name: Dester v${{ needs.check-version.outputs.version }}
65+
name: Dester v${{ needs.check-version.outputs.version }} (Alpha)
6666
draft: false
67-
prerelease: false
67+
prerelease: true
6868
generate_release_notes: true
69+
body: |
70+
🚧 **Alpha Development Build**
71+
72+
**Build Information:**
73+
- Commit: ${{ github.sha }}
74+
- Branch: ${{ github.ref_name }}
75+
- Workflow Run: ${{ github.run_number }}
76+
- Build Date: ${{ github.event.head_commit.timestamp }}
77+
78+
⚠️ This is an automated alpha release. Expect bugs and breaking changes.
79+
For stable releases, please wait for beta/stable versions.
6980
env:
7081
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7182

@@ -92,13 +103,13 @@ jobs:
92103
- name: Rename APK
93104
run: |
94105
mv build/app/outputs/flutter-apk/app-release.apk \
95-
build/app/outputs/flutter-apk/Dester-${{ needs.check-version.outputs.version }}-Android.apk
106+
build/app/outputs/flutter-apk/Dester-${{ needs.check-version.outputs.version }}-alpha-Android.apk
96107
97108
- name: Upload APK to Release
98109
uses: softprops/action-gh-release@v1
99110
with:
100111
tag_name: v${{ needs.check-version.outputs.version }}
101-
files: build/app/outputs/flutter-apk/Dester-${{ needs.check-version.outputs.version }}-Android.apk
112+
files: build/app/outputs/flutter-apk/Dester-${{ needs.check-version.outputs.version }}-alpha-Android.apk
102113
env:
103114
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
104115

@@ -125,20 +136,20 @@ jobs:
125136
- name: Rename IPA
126137
run: |
127138
if ls build/ios/ipa/*.ipa 1> /dev/null 2>&1; then
128-
mv build/ios/ipa/*.ipa build/ios/ipa/Dester-${{ needs.check-version.outputs.version }}-iOS.ipa
139+
mv build/ios/ipa/*.ipa build/ios/ipa/Dester-${{ needs.check-version.outputs.version }}-alpha-iOS.ipa
129140
else
130141
echo "No IPA found, creating archive from .app"
131142
cd build/ios/archive/Runner.xcarchive/Products/Applications
132-
zip -r Dester-${{ needs.check-version.outputs.version }}-iOS.zip Runner.app
143+
zip -r Dester-${{ needs.check-version.outputs.version }}-alpha-iOS.zip Runner.app
133144
mkdir -p ../../../../ipa
134-
mv Dester-${{ needs.check-version.outputs.version }}-iOS.zip ../../../../ipa/Dester-${{ needs.check-version.outputs.version }}-iOS.ipa
145+
mv Dester-${{ needs.check-version.outputs.version }}-alpha-iOS.zip ../../../../ipa/Dester-${{ needs.check-version.outputs.version }}-alpha-iOS.ipa
135146
fi
136147
137148
- name: Upload IPA to Release
138149
uses: softprops/action-gh-release@v1
139150
with:
140151
tag_name: v${{ needs.check-version.outputs.version }}
141-
files: build/ios/ipa/Dester-${{ needs.check-version.outputs.version }}-iOS.ipa
152+
files: build/ios/ipa/Dester-${{ needs.check-version.outputs.version }}-alpha-iOS.ipa
142153
env:
143154
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
144155

@@ -165,13 +176,13 @@ jobs:
165176
- name: Create ZIP archive
166177
run: |
167178
cd build/macos/Build/Products/Release
168-
zip -r Dester-${{ needs.check-version.outputs.version }}-macOS.zip dester.app
179+
zip -r Dester-${{ needs.check-version.outputs.version }}-alpha-macOS.zip dester.app
169180
170181
- name: Upload macOS build
171182
uses: softprops/action-gh-release@v1
172183
with:
173184
tag_name: v${{ needs.check-version.outputs.version }}
174-
files: build/macos/Build/Products/Release/Dester-${{ needs.check-version.outputs.version }}-macOS.zip
185+
files: build/macos/Build/Products/Release/Dester-${{ needs.check-version.outputs.version }}-alpha-macOS.zip
175186
env:
176187
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
177188

@@ -203,13 +214,13 @@ jobs:
203214
- name: Create archive
204215
run: |
205216
cd build/linux/x64/release/bundle
206-
tar -czf Dester-${{ needs.check-version.outputs.version }}-Linux.tar.gz *
217+
tar -czf Dester-${{ needs.check-version.outputs.version }}-alpha-Linux.tar.gz *
207218
208219
- name: Upload Linux build
209220
uses: softprops/action-gh-release@v1
210221
with:
211222
tag_name: v${{ needs.check-version.outputs.version }}
212-
files: build/linux/x64/release/bundle/Dester-${{ needs.check-version.outputs.version }}-Linux.tar.gz
223+
files: build/linux/x64/release/bundle/Dester-${{ needs.check-version.outputs.version }}-alpha-Linux.tar.gz
213224
env:
214225
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
215226

@@ -235,13 +246,13 @@ jobs:
235246

236247
- name: Create archive
237248
run: |
238-
Compress-Archive -Path build\windows\x64\runner\Release\* -DestinationPath Dester-${{ needs.check-version.outputs.version }}-Windows.zip
249+
Compress-Archive -Path build\windows\x64\runner\Release\* -DestinationPath Dester-${{ needs.check-version.outputs.version }}-alpha-Windows.zip
239250
240251
- name: Upload Windows build
241252
uses: softprops/action-gh-release@v1
242253
with:
243254
tag_name: v${{ needs.check-version.outputs.version }}
244-
files: Dester-${{ needs.check-version.outputs.version }}-Windows.zip
255+
files: Dester-${{ needs.check-version.outputs.version }}-alpha-Windows.zip
245256
env:
246257
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
247258

0 commit comments

Comments
 (0)