在未发现新版本的位置增加日志,方便排查问题 #124
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
# This workflow will build a Java project with Gradle | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | |
name: Android CI | |
on: | |
release: | |
types: [published] | |
push: | |
branches: | |
- master | |
tags: | |
- '2.*' | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: set up JDK 1.8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
- name: release apk sign | |
run: | | |
echo "给apk增加签名" | |
cp $GITHUB_WORKSPACE/.github/workflows/android.keystore $GITHUB_WORKSPACE/app/android.keystore | |
sed '$a\RELEASE_STORE_FILE=./android.keystore' $GITHUB_WORKSPACE/gradle.properties -i | |
- name: build with gradle | |
run: | | |
echo "开始进行release构建" | |
chmod +x gradlew | |
./gradlew app:assembleRelease | |
- name : upload apk | |
uses: actions/upload-artifact@master | |
if: always() | |
with: | |
name: xupdate_apk | |
path: ${{ github.workspace }}/app/build/outputs/apk/release |