mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(ci): prevent partial releases when a build job fails
Restructure the release workflow so build jobs upload workflow artifacts instead of creating GitHub releases directly. A single finalize-release job downloads all artifacts and creates the release only when every platform build succeeds. Also removes the unused gradle bundle step from the Android job and adds retry logic to gradlew assembleRelease.
This commit is contained in:
@@ -21,7 +21,8 @@ try {
|
||||
files = readdirSync(distDir);
|
||||
} catch {}
|
||||
|
||||
// In CI finalization, dist is empty. Prefer GitHub release assets when available.
|
||||
// In CI finalization, dist is populated from downloaded workflow artifacts.
|
||||
// Falls back to GitHub release assets for local/manual runs.
|
||||
const getReleaseAssetNames = async () => {
|
||||
try {
|
||||
const token = process.env.GITHUB_TOKEN;
|
||||
|
||||
Reference in New Issue
Block a user