CI: trigger on merge to main instead of version tags

Version is now auto-generated as 1.0.<run_number> and a matching
git tag is created by the release step on each successful build.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Gerwin Kuijntjes
2026-03-31 14:52:51 +02:00
parent 48c0d80490
commit e939f04185

View File

@@ -2,8 +2,8 @@ name: Android
on:
push:
tags:
- 'v*'
branches:
- main
workflow_dispatch:
inputs:
track:
@@ -47,13 +47,10 @@ jobs:
- name: Resolve version
id: ver
run: |
if [[ "$GITHUB_REF" == refs/tags/v* ]]; then
DISPLAY=${GITHUB_REF_NAME#v}
else
DISPLAY="0.0.$GITHUB_RUN_NUMBER"
fi
echo "display=$DISPLAY" >> $GITHUB_OUTPUT
DISPLAY="1.0.$GITHUB_RUN_NUMBER"
echo "display=$DISPLAY" >> $GITHUB_OUTPUT
echo "code=$GITHUB_RUN_NUMBER" >> $GITHUB_OUTPUT
echo "tag=v$DISPLAY" >> $GITHUB_OUTPUT
# ── Keystore ─────────────────────────────────────────────────────────────
- name: Decode keystore
@@ -91,7 +88,7 @@ jobs:
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref_name }}
tag_name: ${{ steps.ver.outputs.tag }}
name: PocketGraph ${{ steps.ver.outputs.display }}
generate_release_notes: true
files: ${{ env.OUTPUT_DIR }}/*-Signed.apk