Skip to content

Commit

Permalink
Investigate
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesa2 committed May 9, 2024
1 parent 9f4bdbe commit 77f409c
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 8 deletions.
22 changes: 22 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
changelog:
exclude:
labels:
- ignore-for-release
authors:
- someuser
categories:
- title: Breaking Changes 🛠
labels:
- breaking-change
- title: Exciting New Features 🎉
labels:
- enhancement
- title: Dependencies
labels:
- dependencies
- title: Espresso test
labels:
- Espresso
- title: Other Changes
labels:
- "*"
35 changes: 27 additions & 8 deletions .github/workflows/Android-CI-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,37 @@ jobs:
with:
distribution: 'adopt'
java-version: 17
- name: Find Tag
id: tagger
uses: jimschubert/query-tag-action@v2
with:
skip-unshallow: 'true'
commit-ish: HEAD
- name: Check pre-release
run: |
echo "tag=${{steps.tagger.outputs.tag}}"
if [[ ${{ steps.tagger.outputs.tag }} == *alpha* || ${{ steps.tagger.outputs.tag }} == *beta* ]]
then
prerelease=true
else
prerelease=false
fi
echo "PRE_RELEASE=$prerelease" >> $GITHUB_ENV
echo "prerelease=$prerelease"
- name: Install Android SDK
uses: hannesa2/action-android/[email protected]
- name: Build project
run: ./gradlew clean build
run: ./gradlew assembleRelease
env:
VERSION: ${{ github.ref }}
- run: |
assetsAAR=$(find . -name *release.aar | while read -r asset ; do echo "-a $asset" ; done)
VERSION=$(echo $VERSION | cut -d'/' -f3)
assetsJAR=$(find . -name IOIO*${VERSION}.jar | while read -r asset ; do echo "-a $asset" ; done)
tag_name="${GITHUB_REF##*/}"
hub release create ${assetsAAR} ${assetsJAR} -m "$tag_name" "$tag_name"
- name: Create Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{steps.tagger.outputs.tag}}
generate_release_notes: true
prerelease: ${{ env.PRE_RELEASE }}
name: ${{steps.tagger.outputs.tag}}
files: |
./**/build/outputs/aar/*-release.aar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ github.ref }}
5 changes: 5 additions & 0 deletions .github/workflows/Android-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ jobs:
path: |
applications/**/build/outputs/connected_android_test_additional_output/debugAndroidTest/connected
applications/**/build/outputs/androidTest-results/connected
Check:
name: Check
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -103,3 +104,7 @@ jobs:
run: ./gradlew assembleRelease
env:
VERSION: ${{ github.ref }}
- name: investigate aar
run: find . -name "*release.aar"
- name: investigate jar
run: find . -name "IOIO*.jar"

0 comments on commit 77f409c

Please sign in to comment.