diff --git a/.github/workflows/beta-pack-all.yml b/.github/workflows/beta-pack-all.yml deleted file mode 100644 index 534bb6e..0000000 --- a/.github/workflows/beta-pack-all.yml +++ /dev/null @@ -1,114 +0,0 @@ -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 - - - 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 - - - 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_TYPE: 'Android_SL' - 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 - - # - 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_TYPE: 'Android_5' - # PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8251b8e..8a0d5dd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -47,52 +47,52 @@ jobs: 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 + # 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 + # - 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 }} + # - 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 + # # 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: Create git tag - uses: pkgdeps/git-tag-action@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - github_repo: ${{ github.repository }} - version: ${{ env.PACKAGE_VERSION }} - git_commit_sha: ${{ env.COMMIT_SHA }} - git_tag_prefix: "v" + # - name: Create git tag + # uses: pkgdeps/git-tag-action@v3 + # with: + # github_token: ${{ secrets.GITHUB_TOKEN }} + # github_repo: ${{ github.repository }} + # version: ${{ env.PACKAGE_VERSION }} + # git_commit_sha: ${{ env.COMMIT_SHA }} + # git_tag_prefix: "v" - - name: Generate file MD5 - run: | - echo "current commit sha: ${{ env.COMMIT_SHA }}" - cd android/app/build/outputs/apk/release - md5sum *.apk + # - 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_TYPE: 'Android_SL' - PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }} + # - name: Upload Artifact + # uses: ./.github/actions/upload-artifact + # env: + # PACKAGE_TYPE: 'Android_SL' + # PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }} # Android_5: # name: Android_5 @@ -178,7 +178,8 @@ jobs: artifacts/lx-music-mobile-v${{ env.PACKAGE_VERSION }}-x86_64.apk artifacts/lx-music-mobile-v${{ env.PACKAGE_VERSION }}-x86.apk artifacts/lx-music-mobile-v${{ env.PACKAGE_VERSION }}-universal.apk - artifacts/lx-music-mobile-v${{ env.PACKAGE_VERSION }}-sl-arm64-v8a.apk + + # artifacts/lx-music-mobile-v${{ env.PACKAGE_VERSION }}-sl-arm64-v8a.apk # artifacts/lx-music-mobile-v${{ env.PACKAGE_VERSION }}-android_5-universal.apk env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}