Skip to content

Commit

Permalink
trying to get the version tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
syslogic committed Dec 10, 2023
1 parent 7934f2b commit 9f968ec
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/android-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: 🤖 Android CI
on:
push:
branches: [ master ]
tags:
- '*.*.*'
paths-ignore:
- '**/README.md'
- 'screenshots/**'
Expand All @@ -12,6 +14,8 @@ on:

pull_request:
branches: [ master ]
tags:
- '*.*.*'
paths-ignore:
- '**/README.md'
- 'screenshots/**'
Expand All @@ -27,6 +31,9 @@ jobs:

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

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

# https://github.com/actions/upload-artifact
- name: 📦 Retain Artifacts (Release AAR)
id: retain-release-aab
id: retain-release-aar
uses: actions/upload-artifact@v3
env:
VERSION_TAG: ${{ steps.vars.outputs.tag }}
with:
name: androidx-colorpicker-release-aar
path: ./library/build/outputs/aar/colorpicker-release.aar
name: androidx-colorpicker-aar
path: ./library/build/outputs/aar/colorpicker_${VERSION_TAG}-release.aar
retention-days: 14

0 comments on commit 9f968ec

Please sign in to comment.