@@ -2,9 +2,14 @@ name: Release
22
33# Build a minified, signed release APK and publish it as a GitHub Release.
44#
5−# Trigger by pushing a version tag (e.g. `git tag v1.2.0 && git push --tags`),
6−# or run manually from the Actions tab (workflow_dispatch), in which case the
7−# version is derived from the current UTC time as YYYY.MM.DD.HHMM.
5+# Runs automatically on every push to `master` (e.g. a merged PR), on a pushed
6+# version tag (e.g. `git tag v1.2.0 && git push --tags`), or manually from the
7+# Actions tab (workflow_dispatch). For a branch push or manual run the version
8+# is derived from the current UTC time as YYYY.MM.DD.HHMM; a tag push uses the
9+# tag name (with the leading `v` stripped) as the version.
10+#
11+# The `v*` tag this workflow pushes when publishing a release does NOT retrigger
12+# it: events created with the default GITHUB_TOKEN don't start new workflow runs.
813#
914# Signing: if the `OPENCODE_STORE_*` secrets are configured the APK is signed
1015# with that keystore; otherwise the Gradle build falls back to the debug key so
@@ -12,6 +17,7 @@ name: Release
1217# is passed to Gradle as `-PversionName/-PversionCode` and stamped into the APK.
1318on:
1419 push:
20+ branches: [master]
1521 tags: ["v*"]
1622 workflow_dispatch:
1723