Skip to content

build_mobile

build_mobile #14

Workflow file for this run

name: "build_mobile"
on:
workflow_dispatch:
inputs:
version:
type: string
description: 'Release tag'
required: true
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Build
run: |
for dir in ./aptos-mobile/*/; do
(bash "$dir/build-android.sh" && bash "$dir/build-ios.sh")
done
- name: Zip
working-directory: aptos-mobile
run: |
for dir in ./*/; do
dir_name=$(basename "$dir")
zip -r "$dir_name.zip" "$dir/android" "$dir/ios"
done
- name: Check zip
run: |
ls -R
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ github.event.inputs.version }}
name: Release v${{ github.event.inputs.version }}
draft: false
prerelease: false
files: |
./aptos-mobile/*/*.zip