Skip to content

Commit a9c3db2

Browse files
authored
workflow: build the APK from the latest Git tag
1 parent dc0adb3 commit a9c3db2

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/build_release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,15 @@ jobs:
88
runs-on: ubuntu-latest
99

1010
steps:
11-
- uses: actions/checkout@v4
11+
- name: Checkout latest tag
12+
uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0 # fetch all history and tags
15+
- name: Checkout latest Git tag
16+
run: |
17+
latest_tag=$(git describe --tags "$(git rev-list --tags --max-count=1)")
18+
echo "Latest tag is $latest_tag"
19+
git checkout $latest_tag
1220
1321
- name: Set up JDK
1422
uses: actions/setup-java@v4

0 commit comments

Comments
 (0)