Skip to content

Commit 9f968ec

Browse files
committed
trying to get the version tag.
1 parent 7934f2b commit 9f968ec

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/android-ci.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: 🤖 Android CI
33
on:
44
push:
55
branches: [ master ]
6+
tags:
7+
- '*.*.*'
68
paths-ignore:
79
- '**/README.md'
810
- 'screenshots/**'
@@ -12,6 +14,8 @@ on:
1214

1315
pull_request:
1416
branches: [ master ]
17+
tags:
18+
- '*.*.*'
1519
paths-ignore:
1620
- '**/README.md'
1721
- 'screenshots/**'
@@ -27,6 +31,9 @@ jobs:
2731

2832
- name: 🚚 Get latest code
2933
uses: actions/checkout@v3
34+
- name: Set output
35+
id: vars
36+
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
3037

3138
# https://github.com/actions/setup-java
3239
- name: ☕ Set up AWS Corretto JDK 17
@@ -44,9 +51,11 @@ jobs:
4451

4552
# https://github.com/actions/upload-artifact
4653
- name: 📦 Retain Artifacts (Release AAR)
47-
id: retain-release-aab
54+
id: retain-release-aar
4855
uses: actions/upload-artifact@v3
56+
env:
57+
VERSION_TAG: ${{ steps.vars.outputs.tag }}
4958
with:
50-
name: androidx-colorpicker-release-aar
51-
path: ./library/build/outputs/aar/colorpicker-release.aar
59+
name: androidx-colorpicker-aar
60+
path: ./library/build/outputs/aar/colorpicker_${VERSION_TAG}-release.aar
5261
retention-days: 14

0 commit comments

Comments
 (0)