library: Optimize SuperDropdown (#23) #86
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build example app | |
on: | |
push: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
- name: Build example app | |
run: | | |
echo ${{ secrets.SIGNING_KEY }} | base64 -d > keystore.jks | |
./gradlew :composeApp:assembleRelease | |
./gradlew :composeApp:assembleDebug | |
env: | |
KEYSTORE_PATH: "../keystore.jks" | |
KEYSTORE_PASS: ${{ secrets.KEY_STORE_PASSWORD }} | |
KEY_ALIAS: ${{ secrets.ALIAS }} | |
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }} | |
- name: Upload android artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: AndroidExampleApp | |
path: composeApp/build/outputs/apk/release | |
- name: Post to Telegram ci channel | |
if: ${{ success() && github.event_name != 'pull_request' && github.ref == 'refs/heads/main' && github.ref_type != 'tag' }} | |
env: | |
CHANNEL_ID: ${{ secrets.CHANNEL_ID }} | |
BOT_TOKEN: ${{ secrets.BOT_TOKEN }} | |
COMMIT_MESSAGE: |+ | |
New CI from miuix\-kotlin\-multiplatform | |
``` | |
${{ github.event.head_commit.message }} | |
``` | |
run: | | |
if [ ! -z "${{ secrets.BOT_TOKEN }}" ]; then | |
export RELEASE=$(find ./composeApp/build/outputs/apk/release -name "*.apk") | |
export DEBUG=$(find ./composeApp/build/outputs/apk/debug -name "*.apk") | |
ESCAPED=`python3 -c 'import json,os,urllib.parse; print(urllib.parse.quote(json.dumps(os.environ["COMMIT_MESSAGE"])))'` | |
curl -v "https://api.telegram.org/bot${BOT_TOKEN}/sendMediaGroup?chat_id=${CHANNEL_ID}&media=%5B%7B%22type%22%3A%22document%22%2C%20%22media%22%3A%22attach%3A%2F%2Frelease%22%7D%2C%7B%22type%22%3A%22document%22%2C%20%22media%22%3A%22attach%3A%2F%2Fdebug%22%2C%22parse_mode%22%3A%22MarkdownV2%22%2C%22caption%22%3A${ESCAPED}%7D%5D" -F release="@$RELEASE" -F debug="@$DEBUG" | |
fi |