This repository has been archived by the owner on Feb 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
66fa59a
commit be3ae43
Showing
3 changed files
with
16 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,10 +30,10 @@ jobs: | |
if: ${{ github.event_name != 'pull_request' || github.ref_type == 'tag' }} | ||
run: | | ||
if [ -n "${{ secrets.RELEASEKEYPASSWORD }}" ]; then | ||
echo releaseKeyAlias="${{ vars.RELEASE_KEY_ALIAS }}" >> keystore.properties | ||
echo releaseKeyPassword="${{ secrets.RELEASEKEYPASSWORD }}" >> keystore.properties | ||
echo releaseKeyStore="${{ vars.RELEASE_KEYSTORE }}" >> keystore.properties | ||
echo releaseStorePassword="${{ secrets.RELEASESTOREPASSWORD }}" >> keystore.properties | ||
echo keystore.file="${{ vars.RELEASE_KEYSTORE }}" >> keystore.properties | ||
echo keystore.password="${{ secrets.RELEASESTOREPASSWORD }}" >> keystore.properties | ||
echo keystore.key.alias="${{ vars.RELEASE_KEY_ALIAS }}" >> keystore.properties | ||
echo keystore.key.password="${{ secrets.RELEASEKEYPASSWORD }}" >> keystore.properties | ||
fi | ||
- name: Setup Gradle | ||
|
@@ -43,7 +43,7 @@ jobs: | |
cache-read-only: ${{ github.ref != 'refs/heads/master' && github.ref != 'refs/heads/4.0-dev' }} | ||
|
||
- name: Build with Gradle | ||
run: ./gradlew assemble | ||
run: ./gradlew assembleRelease | ||
|
||
- name: Read Output Metadata | ||
id: read_output_metadata | ||
|
@@ -61,15 +61,6 @@ jobs: | |
name: "release-${{ env.version_name }}(${{ env.version_code }})" | ||
path: ./app/build/outputs/apk/release | ||
|
||
- name: Upload Debug Package | ||
env: | ||
version_code: ${{ fromJSON(steps.read_output_metadata.outputs.content).elements[0].versionCode }} | ||
version_name: ${{ fromJSON(steps.read_output_metadata.outputs.content).elements[0].versionName }} | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: "debug-${{ env.version_name }}(${{ env.version_code }})" | ||
path: ./app/build/outputs/apk/debug | ||
|
||
- name: Upload Mapping | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
|
@@ -107,4 +98,4 @@ jobs: | |
uses: saurav-aggarwal/[email protected] | ||
with: | ||
token: ${{ secrets.APP_CENTER_TOKEN }} | ||
command: appcenter crashes upload-mappings -c ${{ env.version_code }} -n ${{ env.version_name }} -m ${{ github.workspace }}/app/build/outputs/mapping/release/mapping.txt -a ${{ secrets.APP_CENTER_APP }} | ||
command: appcenter crashes upload-mappings -c ${{ env.version_code }} -n ${{ env.version_name }} -m /github/workspace/app/build/outputs/mapping/release/mapping.txt -a huanchengfly/TiebaLite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters