更新版本号(1.6.0-beta.1) #200
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 Beta | |
on: | |
push: | |
branches: | |
- beta | |
jobs: | |
Android: | |
name: Android | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out git repository | |
uses: actions/checkout@v4 | |
- name: Setup Env | |
uses: ./.github/actions/setup | |
- name: Build Packages | |
shell: bash | |
run: | | |
cd android | |
echo ${{ secrets.KEYSTORE_STORE_FILE_BASE64 }} | base64 --decode > app/${{ secrets.KEYSTORE_STORE_FILE }} | |
./gradlew assembleRelease -PMYAPP_UPLOAD_STORE_FILE='${{ secrets.KEYSTORE_STORE_FILE }}' -PMYAPP_UPLOAD_KEY_ALIAS='${{ secrets.KEYSTORE_KEY_ALIAS }}' -PMYAPP_UPLOAD_STORE_PASSWORD='${{ secrets.KEYSTORE_PASSWORD }}' -PMYAPP_UPLOAD_KEY_PASSWORD='${{ secrets.KEYSTORE_KEY_PASSWORD }}' | |
rm -f app/${{ secrets.KEYSTORE_STORE_FILE }} | |
# Push tag to GitHub if package.json version's tag is not tagged | |
- name: Get package version | |
run: node -p -e '`PACKAGE_VERSION=${require("./package.json").version}`' >> $GITHUB_ENV | |
- name: Generate file MD5 | |
run: | | |
cd android/app/build/outputs/apk/release | |
md5sum *.apk | |
- name: Upload Artifact | |
uses: ./.github/actions/upload-artifact | |
env: | |
PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }} |