Skip to content

Merge pull request #165 from dmytrodanylyk/api34 #5

Merge pull request #165 from dmytrodanylyk/api34

Merge pull request #165 from dmytrodanylyk/api34 #5

name: Release
on:
push:
tags:
- '*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install JDK ${{ matrix.java_version }}
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: 17
- name: Install Android SDK
uses: malinskiy/action-android/install-sdk@release/0.1.4
- name: Build project
run: ./gradlew assembleRelease
env:
VERSION: ${{ github.ref }}
- name: Get the version
id: tagger
uses: jimschubert/query-tag-action@v2
with:
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}}
generate_release_notes: true
files: ./library/build/outputs/aar/*-release.aar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}