From f63e8e20e848bf2e8f55bef3087470718d184cac Mon Sep 17 00:00:00 2001 From: Hannes Achleitner Date: Thu, 9 May 2024 10:11:51 +0200 Subject: [PATCH] Investigate --- .github/release.yml | 22 +++++++++++++++++++ .github/workflows/Android-CI-release.yml | 27 ++++++++++++++++++------ .github/workflows/Android-CI.yml | 5 +++++ 3 files changed, 47 insertions(+), 7 deletions(-) create mode 100644 .github/release.yml diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 00000000..1bdb15ca --- /dev/null +++ b/.github/release.yml @@ -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: + - "*" \ No newline at end of file diff --git a/.github/workflows/Android-CI-release.yml b/.github/workflows/Android-CI-release.yml index a76577a1..07c74c4a 100644 --- a/.github/workflows/Android-CI-release.yml +++ b/.github/workflows/Android-CI-release.yml @@ -19,18 +19,31 @@ jobs: with: distribution: 'adopt' java-version: 17 + - 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/install-sdk@0.1.16.7 - name: Build project run: ./gradlew clean build 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 }} diff --git a/.github/workflows/Android-CI.yml b/.github/workflows/Android-CI.yml index dae1d128..c197819d 100644 --- a/.github/workflows/Android-CI.yml +++ b/.github/workflows/Android-CI.yml @@ -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 }} @@ -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" \ No newline at end of file