chore: 优化 CI
This commit is contained in:
parent
9035f8101d
commit
d5e234ecda
|
|
@ -37,12 +37,21 @@ jobs:
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
run: ./gradlew clean packageRelease
|
run: ./gradlew clean packageRelease
|
||||||
|
|
||||||
|
- name: Read Output Metadata
|
||||||
|
if: ${{ success() }}
|
||||||
|
id: read_output_metadata
|
||||||
|
uses: juliangruber/read-file-action@v1
|
||||||
|
with:
|
||||||
|
path: ${{ github.workspace }}/app/build/outputs/apk/release/output-metadata.json
|
||||||
|
|
||||||
- name: Upload Package
|
- name: Upload Package
|
||||||
if: ${{ success() }}
|
if: ${{ success() }}
|
||||||
|
env:
|
||||||
|
output_file: ${{ fromJSON(steps.read_output_metadata.outputs.content).elements[0].outputFile }}
|
||||||
uses: actions/upload-artifact@v3.1.2
|
uses: actions/upload-artifact@v3.1.2
|
||||||
with:
|
with:
|
||||||
name: package
|
name: ${{ env.output_file }}
|
||||||
path: ${{ github.workspace }}/app/build/outputs/apk/release/*.apk
|
path: ${{ github.workspace }}/app/build/outputs/apk/release/${{ env.output_file }}
|
||||||
|
|
||||||
- name: Upload Mapping
|
- name: Upload Mapping
|
||||||
if: ${{ success() }}
|
if: ${{ success() }}
|
||||||
|
|
@ -51,13 +60,6 @@ jobs:
|
||||||
name: mapping
|
name: mapping
|
||||||
path: ${{ github.workspace }}/app/build/outputs/mapping/release
|
path: ${{ github.workspace }}/app/build/outputs/mapping/release
|
||||||
|
|
||||||
- name: Read Output Metadata
|
|
||||||
if: ${{ success() }}
|
|
||||||
id: read_output_metadata
|
|
||||||
uses: juliangruber/read-file-action@v1
|
|
||||||
with:
|
|
||||||
path: ${{ github.workspace }}/app/build/outputs/apk/release/output-metadata.json
|
|
||||||
|
|
||||||
- name: Upload Mapping to App Center
|
- name: Upload Mapping to App Center
|
||||||
if: ${{ success() }}
|
if: ${{ success() }}
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue