mirror of
https://github.com/ikun0014/lx-music-mobile.git
synced 2025-05-23 22:37:41 +08:00
修改触发构建方式
This commit is contained in:
parent
e48e0d54f4
commit
3c50d62ff9
118
.github/workflows/beta-pack-all.yml
vendored
Normal file
118
.github/workflows/beta-pack-all.yml
vendored
Normal file
@ -0,0 +1,118 @@
|
|||||||
|
name: Build Beta
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
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
|
||||||
|
env:
|
||||||
|
JAVA_VERSION: '17'
|
||||||
|
|
||||||
|
- 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 }}
|
||||||
|
|
||||||
|
|
||||||
|
Android_SL:
|
||||||
|
name: Android_SL
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out git repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: statusbar_lyric
|
||||||
|
|
||||||
|
- name: Setup Env
|
||||||
|
uses: ./.github/actions/setup
|
||||||
|
env:
|
||||||
|
JAVA_VERSION: '17'
|
||||||
|
|
||||||
|
- 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
|
||||||
|
echo "COMMIT_SHA=$(git show -s --format=%H)" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Generate file MD5
|
||||||
|
run: |
|
||||||
|
echo "current commit sha: ${{ env.COMMIT_SHA }}"
|
||||||
|
cd android/app/build/outputs/apk/release
|
||||||
|
md5sum *.apk
|
||||||
|
|
||||||
|
- name: Upload Artifact
|
||||||
|
uses: ./.github/actions/upload-artifact
|
||||||
|
env:
|
||||||
|
PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }}
|
||||||
|
|
||||||
|
Android_5:
|
||||||
|
name: Android_5
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out git repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: android_5
|
||||||
|
|
||||||
|
- name: Setup Env
|
||||||
|
uses: ./.github/actions/setup
|
||||||
|
env:
|
||||||
|
JAVA_VERSION: '11'
|
||||||
|
|
||||||
|
- 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
|
||||||
|
echo "COMMIT_SHA=$(git show -s --format=%H)" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Generate file MD5
|
||||||
|
run: |
|
||||||
|
echo "current commit sha: ${{ env.COMMIT_SHA }}"
|
||||||
|
cd android/app/build/outputs/apk/release
|
||||||
|
md5sum *.apk
|
||||||
|
|
||||||
|
- name: Upload Artifact
|
||||||
|
uses: ./.github/actions/upload-artifact
|
||||||
|
env:
|
||||||
|
PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }}
|
79
.github/workflows/beta-pack.yml
vendored
79
.github/workflows/beta-pack.yml
vendored
@ -39,82 +39,3 @@ jobs:
|
|||||||
uses: ./.github/actions/upload-artifact
|
uses: ./.github/actions/upload-artifact
|
||||||
env:
|
env:
|
||||||
PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }}
|
PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }}
|
||||||
|
|
||||||
|
|
||||||
Android_SL:
|
|
||||||
name: Android_SL
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Check out git repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
ref: statusbar_lyric
|
|
||||||
|
|
||||||
- name: Setup Env
|
|
||||||
uses: ./.github/actions/setup
|
|
||||||
env:
|
|
||||||
JAVA_VERSION: '17'
|
|
||||||
|
|
||||||
- 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
|
|
||||||
echo "COMMIT_SHA=$(git show -s --format=%H)" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Generate file MD5
|
|
||||||
run: |
|
|
||||||
echo "current commit sha: ${{ env.COMMIT_SHA }}"
|
|
||||||
cd android/app/build/outputs/apk/release
|
|
||||||
md5sum *.apk
|
|
||||||
|
|
||||||
- name: Upload Artifact
|
|
||||||
uses: ./.github/actions/upload-artifact
|
|
||||||
env:
|
|
||||||
PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }}
|
|
||||||
|
|
||||||
Android_5:
|
|
||||||
name: Android_5
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Check out git repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
ref: android_5
|
|
||||||
|
|
||||||
- name: Setup Env
|
|
||||||
uses: ./.github/actions/setup
|
|
||||||
env:
|
|
||||||
JAVA_VERSION: '11'
|
|
||||||
|
|
||||||
- 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
|
|
||||||
echo "COMMIT_SHA=$(git show -s --format=%H)" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Generate file MD5
|
|
||||||
run: |
|
|
||||||
echo "current commit sha: ${{ env.COMMIT_SHA }}"
|
|
||||||
cd android/app/build/outputs/apk/release
|
|
||||||
md5sum *.apk
|
|
||||||
|
|
||||||
- name: Upload Artifact
|
|
||||||
uses: ./.github/actions/upload-artifact
|
|
||||||
env:
|
|
||||||
PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user