Skip to content

Commit dc57119

Browse files
committed
test
1 parent 60983d0 commit dc57119

1 file changed

Lines changed: 65 additions & 0 deletions

File tree

.github/workflows/beta-pack.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,68 @@ jobs:
3737
uses: ./.github/actions/upload-artifact
3838
env:
3939
PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }}
40+
41+
Android_SL:
42+
name: Android_SL
43+
runs-on: ubuntu-latest
44+
steps:
45+
- name: Check out git repository
46+
uses: actions/checkout@v4
47+
with:
48+
ref: statusbar_lyric
49+
50+
- name: Setup Env
51+
uses: ./.github/actions/setup
52+
53+
- name: Build Packages
54+
shell: bash
55+
run: |
56+
cd android
57+
echo ${{ secrets.KEYSTORE_STORE_FILE_BASE64 }} | base64 --decode > app/${{ secrets.KEYSTORE_STORE_FILE }}
58+
./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 }}'
59+
rm -f app/${{ secrets.KEYSTORE_STORE_FILE }}
60+
61+
# Push tag to GitHub if package.json version's tag is not tagged
62+
- name: Get package version
63+
run: |
64+
node -p -e '`PACKAGE_VERSION=${require("./package.json").version}`' >> $GITHUB_ENV
65+
echo "COMMIT_SHA=$(git show -s --format=%H)" >> $GITHUB_ENV
66+
67+
- name: Generate file MD5
68+
run: |
69+
echo "current commit sha: ${{ env.COMMIT_SHA }}"
70+
cd android/app/build/outputs/apk/release
71+
md5sum *.apk
72+
73+
- name: Upload Artifact
74+
uses: ./.github/actions/upload-artifact
75+
env:
76+
PACKAGE_TYPE: 'Android_SL'
77+
PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }}
78+
Release:
79+
name: Release
80+
runs-on: ubuntu-latest
81+
needs: [Android]
82+
steps:
83+
- name: Check out git repository
84+
uses: actions/checkout@v4
85+
86+
- name: Download Artifacts
87+
uses: actions/download-artifact@v4
88+
with:
89+
path: ./artifacts
90+
merge-multiple: true
91+
92+
- name: Generate file MD5
93+
run: |
94+
cd artifacts
95+
md5sum *.apk
96+
ls
97+
98+
- name: Get package version
99+
run: node -p -e '`PACKAGE_VERSION=${require("./package.json").version}`' >> $GITHUB_ENV
100+
101+
- name: Release
102+
run: |
103+
ls
104+
ls artifacts

0 commit comments

Comments
 (0)