Skip to content

Add publish configure #3

Add publish configure

Add publish configure #3

Workflow file for this run

name: Create release
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build module
run: ./gradlew safecall:build
- name: Rename aar
run: mv safecall/build/outputs/aar/safecall-release.aar safecall/build/outputs/aar/safecall-${{ github.ref_name }}.aar
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
safecall/build/outputs/aar/safecall-${{ github.ref_name }}.aar