Skip to content

Commit 94e8d7a

Browse files
committed
Allow rebuilding existing Android release asset
1 parent 271caef commit 94e8d7a

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/android-release.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,11 @@ jobs:
9393
printf 'Verify: `gh attestation verify soh-%s.apk --owner linkzenic`\n' "${TAG}" >> /tmp/release-notes.md
9494
printf 'Build: %s/%s/actions/runs/%s\n' "${{ github.server_url }}" "${{ github.repository }}" "${{ github.run_id }}" >> /tmp/release-notes.md
9595
96-
gh release create "${TAG}" \
97-
"soh-${TAG}.apk" \
98-
--title "${TAG}" \
99-
--notes-file /tmp/release-notes.md
96+
if gh release view "${TAG}" >/dev/null 2>&1; then
97+
gh release upload "${TAG}" "soh-${TAG}.apk" --clobber
98+
else
99+
gh release create "${TAG}" \
100+
"soh-${TAG}.apk" \
101+
--title "${TAG}" \
102+
--notes-file /tmp/release-notes.md
103+
fi

0 commit comments

Comments
 (0)