Update gradle-publish.yml to target main branch

Restrict workflow triggers to main branch for push and pull requests.
This commit is contained in:
Michachatz
2026-03-25 07:52:12 +01:00
committed by GitHub
parent 272d6fd908
commit 4e6f7c7c67

View File

@@ -3,8 +3,10 @@ name: Build and publish APK
on:
workflow_dispatch:
push:
tags:
- 'b*'
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
ANDROID_HOME: /usr/local/lib/android/sdk/
@@ -70,4 +72,4 @@ jobs:
uses: actions/upload-artifact@v7
with:
name: app-release
path: app-release.apk
path: app-release.apk