1 Star 0 Fork 0

tourze / taro-ui-rn-demo

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
assemble_android_debug.yml 2.99 KB
Copy Edit Raw Blame History
lzp authored 2021-11-12 23:02 . init
# 工作流名称
name: Assemble Android Debug
# 触发工作流程的事件
on:
push:
branches: [ master ]
tags: [ v* ]
pull_request:
branches: [ master ]
workflow_dispatch:
# 工作流环境变量
env:
# 应用的application_id
APP_ID: com.taro.demo
# 应用名称
APP_NAME: Taro Demo
# 应用icon
APP_ICON: ic_launcher
# 应用圆角icon
APP_ROUND_ICON: ic_launcher_round
# 应用支持的CPU架构
APP_ABI_FILTERS: armeabi-v7a, arm64-v8a
# 打包类型
BUILD_TYPE: debug
# 版本名称
VERSION_NAME: 1.0.0
# 版本号
VERSION_CODE: 10
# 密钥库文件
KEYSTORE_FILE: debug.keystore
# 密钥库口令
KEYSTORE_PASSWORD: android
# 密钥库别名
KEYSTORE_KEY_ALIAS: androiddebugkey
# 密钥库别名口令
KEYSTORE_KEY_PASSWORD: android
# 工作流作业
jobs:
assemble:
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v2
- name: Cache node_modules Folder
uses: actions/cache@v2
with:
path: ${{ github.workspace }}/node_modules
key: ${{ runner.os }}-node_modules
restore-keys: ${{ runner.os }}-node_modules
- name: Get Yarn Cache Directory Path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache Yarn
uses: actions/cache@v2
env:
cache-name: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Dependencies
run: |
yarn
- name: Build Taro React Native Bundle
run: |
yarn build:rn --platform android
- name: Cache Gradle
uses: actions/cache@v2
env:
cache-name: gradle-cache
with:
path: ~/.gradle
key: ${{ runner.os }}-gradle
restore-keys: |
${{ runner.os }}-gradle
- name: Assemble Android ${{ env.BUILD_TYPE }}
run: |
cd ./android && \
./gradlew assemble${{ env.BUILD_TYPE }} \
-Papp_id=${{ env.APP_ID }} \
-Papp_name='${{ env.APP_NAME }}' \
-Papp_icon=${{env.APP_ICON}} \
-Papp_round_icon=${{env.APP_ROUND_ICON}} \
-Pversion_code=${{ env.VERSION_CODE }} \
-Pversion_name=${{ env.VERSION_NAME }} \
-Pabi_filters='${{ env.APP_ABI_FILTERS }}' \
-Pkeystore_file='${{ env.KEYSTORE_FILE }}' \
-Pkeystore_password='${{ env.KEYSTORE_PASSWORD }}' \
-Pkeystore_key_alias='${{ env.KEYSTORE_KEY_ALIAS }}' \
-Pkeystore_key_password='${{ env.KEYSTORE_KEY_PASSWORD }}'
- name: Upload Android Products
uses: actions/upload-artifact@v2
with:
name: app-${{ env.BUILD_TYPE }}
path: ${{ github.workspace }}/android/app/build/outputs/apk/${{ env.BUILD_TYPE }}/app-${{ env.BUILD_TYPE }}.apk
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tourze/taro-ui-rn-demo.git
git@gitee.com:tourze/taro-ui-rn-demo.git
tourze
taro-ui-rn-demo
taro-ui-rn-demo
main

Search

344bd9b3 5694891 D2dac590 5694891