Skip to content

Commit 8f30605

Browse files
committed
trying to get the version tag.
1 parent 9f968ec commit 8f30605

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/android-ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131

3232
- name: 🚚 Get latest code
3333
uses: actions/checkout@v3
34-
- name: Set output
34+
- name: Set version tag
3535
id: vars
3636
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
3737

@@ -47,15 +47,15 @@ jobs:
4747
run: chmod +x gradlew
4848

4949
- name: 🔨 Build with Gradle
50+
env:
51+
VERSION_TAG: ${{ steps.vars.outputs.tag }}
5052
run: ./gradlew :library:assembleRelease
5153

5254
# https://github.com/actions/upload-artifact
5355
- name: 📦 Retain Artifacts (Release AAR)
5456
id: retain-release-aar
5557
uses: actions/upload-artifact@v3
56-
env:
57-
VERSION_TAG: ${{ steps.vars.outputs.tag }}
5858
with:
5959
name: androidx-colorpicker-aar
60-
path: ./library/build/outputs/aar/colorpicker_${VERSION_TAG}-release.aar
60+
path: ./library/build/outputs/aar/colorpicker_*-release.aar
6161
retention-days: 14

0 commit comments

Comments
 (0)