Skip to content

build_mobile

build_mobile #13

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
- name: Upload
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: |
./aptos-mobile/*/*.zip
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: ./aptos-mobile/range-proofs/android-rp-artifacts.zip
# asset_name: android-rp-artifacts.zip
# asset_content_type: application/zip