Skip to content

Commit

Permalink
Github release
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesa2 committed Sep 7, 2020
1 parent 3abe10a commit 0c3a944
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/Android-CI-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Release

on:
push:
tags:
- '*'

jobs:
build:
name: Publish release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Install JDK ${{ matrix.java_version }}
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Install Android SDK
uses: malinskiy/action-android/install-sdk@release/0.0.7
- name: Build project
run: ./gradlew clean build
env:
TAG_VERSION: ${{ github.ref }}
- run: |
assetsAAR=$(find . -name *release.aar | while read -r asset ; do echo "-a $asset" ; done)
VERSION=$(echo $TAG_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"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_VERSION: ${{ github.ref }}

0 comments on commit 0c3a944

Please sign in to comment.