@@ -2,9 +2,14 @@ name: Release
3# Build a minified, signed release APK and publish it as a GitHub Release.
3# Build a minified, signed release APK and publish it as a GitHub Release.
5+# Runs automatically on every push to `master` (e.g. a merged PR), on a pushed
5−# Trigger by pushing a version tag (e.g. `git tag v1.2.0 && git push --tags`),
6+# version tag (e.g. `git tag v1.2.0 && git push --tags`), or manually from the
6−# or run manually from the Actions tab (workflow_dispatch), in which case the
7+# Actions tab (workflow_dispatch). For a branch push or manual run the version
7−# version is derived from the current UTC time as YYYY.MM.DD.HHMM.
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.
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.
9# Signing: if the `OPENCODE_STORE_*` secrets are configured the APK is signed
14# Signing: if the `OPENCODE_STORE_*` secrets are configured the APK is signed
10# with that keystore; otherwise the Gradle build falls back to the debug key so
15# with that keystore; otherwise the Gradle build falls back to the debug key so
@@ -12,6 +17,7 @@ name: Release
12# is passed to Gradle as `-PversionName/-PversionCode` and stamped into the APK.
17# is passed to Gradle as `-PversionName/-PversionCode` and stamped into the APK.
15 tags: ["v*"]
21 tags: ["v*"]
16 workflow_dispatch:
22 workflow_dispatch: