ci(release): manual, batched releases — no release on merge
All checks were successful
ci / test (pull_request) Successful in 3m49s
All checks were successful
ci / test (pull_request) Successful in 3m49s
Drop `push: branches: [main]` from both release workflows. release.yml now runs only via workflow_dispatch, with bump (default minor), version, tag and dry_run inputs; contradictory input is rejected instead of guessed at. android-release.yml keeps the Android assets on the same tag by subscribing to `push: tags: v*.*.*`: creating a tag over the API sends the same push notification a git push does, so the core's tag wakes it. No workflow_call — this Forgejo is 10.0.3, where reusable workflows are not supported. docs/RELEASING.md is the policy and procedure.
This commit is contained in:
parent
acb6c7dd65
commit
6c9fd00b8a
5 changed files with 225 additions and 38 deletions
|
|
@ -14,19 +14,17 @@ name: android-release
|
|||
# First automated version with zero tags: v0.1.0. Afterwards, patch+1 from the
|
||||
# latest v*.*.* tag UNLESS that tag's release is missing the Android assets —
|
||||
# then join it (core owns tag creation). Never move or delete a tag.
|
||||
#
|
||||
# No `push: branches: [main]` trigger: a merged android PR does not publish an
|
||||
# APK. This workflow is woken by the tag release.yml creates for a manual,
|
||||
# batched release — creating a tag over the API sends the same push
|
||||
# notification a `git push` does, so the tag ref matches this filter.
|
||||
# See docs/RELEASING.md.
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- "android/app/**"
|
||||
- "android/sdk/**"
|
||||
- "android/*.gradle.kts"
|
||||
- "android/gradle/**"
|
||||
- "android/gradle.properties"
|
||||
- "android/settings.gradle.kts"
|
||||
- "scripts/build-android-local.sh"
|
||||
- ".forgejo/workflows/android-release.yml"
|
||||
tags:
|
||||
- "v*.*.*"
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
tag:
|
||||
|
|
|
|||
Loading…
Reference in a new issue