File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build AARs and Upload to Release
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ jobs :
8+ build-and-upload :
9+ runs-on : ubuntu-latest
10+
11+ steps :
12+ - name : Checkout code
13+ uses : actions/checkout@v4
14+
15+ - name : Set up JDK
16+ uses : actions/setup-java@v3
17+ with :
18+ distribution : ' temurin'
19+ java-version : ' 17'
20+
21+ - name : Set up Android SDK
22+ uses : android-actions/setup-android@v2
23+
24+ - name : Build all AARs
25+ run : |
26+ ./gradlew clean
27+ ./gradlew :DialogFragmentUtilsLib:assembleRelease
28+ ./gradlew :DialogUtilsLib:assembleRelease
29+
30+ - name : Upload AARs to Release (DialogFragmentUtilsLib)
31+ uses : actions/upload-release-asset@v1
32+ env :
33+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34+ with :
35+ upload_url : ${{ github.event.release.upload_url }}
36+ asset_path : DialogFragmentUtilsLib/build/outputs/aar/DialogFragmentUtilsLib-release.aar
37+ asset_name : DialogFragmentUtilsLib-release.aar
38+ asset_content_type : application/octet-stream # 使用通用二进制类型
39+
40+ - name : Upload AARs to Release (DialogUtilsLib)
41+ uses : actions/upload-release-asset@v1
42+ env :
43+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44+ with :
45+ upload_url : ${{ github.event.release.upload_url }}
46+ asset_path : DialogUtilsLib/build/outputs/aar/DialogUtilsLib-release.aar
47+ asset_name : DialogUtilsLib-release.aar
48+ asset_content_type : application/octet-stream
You can’t perform that action at this time.
0 commit comments