mirror of
https://github.com/awatertrevi/xamarin-neo4j.git
synced 2026-09-22 09:05:29 +00:00
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:
15
Xamarin.Neo4j/.github/workflows/android.yml
vendored
15
Xamarin.Neo4j/.github/workflows/android.yml
vendored
@@ -2,8 +2,8 @@ name: Android
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
branches:
|
||||||
- 'v*'
|
- main
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
track:
|
track:
|
||||||
@@ -47,13 +47,10 @@ jobs:
|
|||||||
- name: Resolve version
|
- name: Resolve version
|
||||||
id: ver
|
id: ver
|
||||||
run: |
|
run: |
|
||||||
if [[ "$GITHUB_REF" == refs/tags/v* ]]; then
|
DISPLAY="1.0.$GITHUB_RUN_NUMBER"
|
||||||
DISPLAY=${GITHUB_REF_NAME#v}
|
echo "display=$DISPLAY" >> $GITHUB_OUTPUT
|
||||||
else
|
|
||||||
DISPLAY="0.0.$GITHUB_RUN_NUMBER"
|
|
||||||
fi
|
|
||||||
echo "display=$DISPLAY" >> $GITHUB_OUTPUT
|
|
||||||
echo "code=$GITHUB_RUN_NUMBER" >> $GITHUB_OUTPUT
|
echo "code=$GITHUB_RUN_NUMBER" >> $GITHUB_OUTPUT
|
||||||
|
echo "tag=v$DISPLAY" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
# ── Keystore ─────────────────────────────────────────────────────────────
|
# ── Keystore ─────────────────────────────────────────────────────────────
|
||||||
- name: Decode keystore
|
- name: Decode keystore
|
||||||
@@ -91,7 +88,7 @@ jobs:
|
|||||||
- name: Create GitHub Release
|
- name: Create GitHub Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ github.ref_name }}
|
tag_name: ${{ steps.ver.outputs.tag }}
|
||||||
name: PocketGraph ${{ steps.ver.outputs.display }}
|
name: PocketGraph ${{ steps.ver.outputs.display }}
|
||||||
generate_release_notes: true
|
generate_release_notes: true
|
||||||
files: ${{ env.OUTPUT_DIR }}/*-Signed.apk
|
files: ${{ env.OUTPUT_DIR }}/*-Signed.apk
|
||||||
|
|||||||
Reference in New Issue
Block a user