Skip to content

Bump actions/setup-java from 3 to 4 (#257) #12

Bump actions/setup-java from 3 to 4 (#257)

Bump actions/setup-java from 3 to 4 (#257) #12

name: Release
on:
push:
tags:
- '*'
jobs:
build:
name: Release
runs-on: macOS-latest
strategy:
matrix:
java_version: [ 11 ]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Find Tag
id: tagger
uses: jimschubert/query-tag-action@v2
with:
skip-unshallow: 'true'
abbrev: false
commit-ish: HEAD
- name: Install JDK ${{ matrix.java_version }}
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: ${{ matrix.java_version }}
- name: Install Android SDK
uses: malinskiy/action-android/install-sdk@release/0.1.4
- name: Build project
run: ./gradlew assembleRelease
- 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: ./mjpeg-view/build/outputs/aar/mjpeg-view-release.aar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}