Skip to content

Commit

Permalink
修复构建
Browse files Browse the repository at this point in the history
  • Loading branch information
lyswhut committed Dec 29, 2023
1 parent 2996d6b commit e48e0d5
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 19 deletions.
13 changes: 0 additions & 13 deletions .github/actions/build-packages/action.yml

This file was deleted.

21 changes: 18 additions & 3 deletions .github/workflows/beta-pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ jobs:
JAVA_VERSION: '17'

- name: Build Packages
uses: ./.github/actions/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
Expand Down Expand Up @@ -51,7 +56,12 @@ jobs:
JAVA_VERSION: '17'

- name: Build Packages
uses: ./.github/actions/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
Expand Down Expand Up @@ -85,7 +95,12 @@ jobs:
JAVA_VERSION: '11'

- name: Build Packages
uses: ./.github/actions/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
Expand Down
21 changes: 18 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ jobs:
JAVA_VERSION: '17'

- name: Build Packages
uses: ./.github/actions/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
Expand Down Expand Up @@ -59,7 +64,12 @@ jobs:
JAVA_VERSION: '17'

- name: Build Packages
uses: ./.github/actions/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
Expand Down Expand Up @@ -102,7 +112,12 @@ jobs:
JAVA_VERSION: '11'

- name: Build Packages
uses: ./.github/actions/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
Expand Down

0 comments on commit e48e0d5

Please sign in to comment.