Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
lyswhut committed Feb 1, 2024
1 parent 60983d0 commit dc57119
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/beta-pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,68 @@ jobs:
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 }}
Release:
name: Release
runs-on: ubuntu-latest
needs: [Android]
steps:
- name: Check out git repository
uses: actions/checkout@v4

- name: Download Artifacts
uses: actions/download-artifact@v4
with:
path: ./artifacts
merge-multiple: true

- name: Generate file MD5
run: |
cd artifacts
md5sum *.apk
ls
- name: Get package version
run: node -p -e '`PACKAGE_VERSION=${require("./package.json").version}`' >> $GITHUB_ENV

- name: Release
run: |
ls
ls artifacts

0 comments on commit dc57119

Please sign in to comment.