From e939f041850f99a01ae53e418d3a067e15382824 Mon Sep 17 00:00:00 2001 From: Gerwin Kuijntjes Date: Tue, 31 Mar 2026 14:52:51 +0200 Subject: [PATCH] CI: trigger on merge to main instead of version tags Version is now auto-generated as 1.0. and a matching git tag is created by the release step on each successful build. Co-Authored-By: Claude Sonnet 4.6 --- Xamarin.Neo4j/.github/workflows/android.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/Xamarin.Neo4j/.github/workflows/android.yml b/Xamarin.Neo4j/.github/workflows/android.yml index 5877aad..0ba785f 100644 --- a/Xamarin.Neo4j/.github/workflows/android.yml +++ b/Xamarin.Neo4j/.github/workflows/android.yml @@ -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