Skip to content

Create and publish app release #18

Create and publish app release

Create and publish app release #18

name: Create and publish app release
on:
workflow_dispatch:
inputs:
increment:
description: Major/minor/patch?
type: choice
required: true
options:
- major
- minor
- patch
default: patch
jobs:
build:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.release-it.outputs.version }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: git config
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- name: Write keystore file
env:
ANDROID_KEYSTORE_BASE64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
run: |
TMP_KEYSTORE_PATH="${RUNNER_TEMP}"/keystore
mkdir -p "${TMP_KEYSTORE_PATH}"
echo $ANDROID_KEYSTORE_BASE64 | base64 -di > "${TMP_KEYSTORE_PATH}"/yatoo.jks
- run: npm i
- run: npx release-it ${{ inputs.increment }}
id: release-it
env:
ANDROID_KEYSTORE_PATH: ${{ runner.temp }}/keystore/yatoo.jks
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}