Skip to content

Commit

Permalink
Pre release
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesa2 committed Jul 10, 2022
1 parent e320955 commit 01d85ab
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ jobs:
with:
distribution: 'adopt'
java-version: 11
- name: Install Android SDK
uses: malinskiy/action-android/install-sdk@release/0.1.2
- name: Build project
run: ./gradlew assembleRelease
env:
Expand All @@ -38,12 +36,16 @@ jobs:
skip-unshallow: 'true'
abbrev: false
commit-ish: HEAD
- name: Create Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{steps.tagger.outputs.tag}}
name: ${{steps.tagger.outputs.tag}}
body: ${{steps.github_release.outputs.changelog}}
files: touchview/build/outputs/aar/touchview-release.aar
- run: |
PRE_RELEASE=""
if [[ ${{steps.tagger.outputs.tag}} == *"beta"* ]]; then
PRE_RELEASE="-p"
fi
if [[ ${{steps.tagger.outputs.tag}} == *"alpha"* ]]; then
PRE_RELEASE="-p"
fi
assetsAAR=$(find . -name *release.aar | while read -r asset ; do echo "-a $asset" ; done)
hub release create $PRE_RELEASE ${assetsAAR} -m "${{steps.tagger.outputs.tag}}" "${{steps.tagger.outputs.tag}}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ github.ref }}

0 comments on commit 01d85ab

Please sign in to comment.