Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit 3bf557c

Browse files
committed
Add workflow to upload build artifacts for each sample
This commit adds a new job to the Android workflow that uploads the build artifacts for each sample. - Uses actions/upload-artifact@v4 to upload the build artifacts. - Sets the name of the artifact to the sample name plus "-build". - Sets the path to the app/build/outputs/ directory for each sample.
1 parent 31038bd commit 3bf557c

1 file changed

Lines changed: 60 additions & 0 deletions

File tree

.github/workflows/android.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ jobs:
3535
- name: Build
3636
working-directory: ActionOpenDocument
3737
run: ./gradlew assembleDebug
38+
- name: Upload build artifacts
39+
uses: actions/upload-artifact@v4
40+
with:
41+
name: ActionOpenDocument-build
42+
path: ActionOpenDocument/app/build/outputs/
3843

3944
ActionOpenDocumentTree:
4045
name: ActionOpenDocumentTree
@@ -49,6 +54,11 @@ jobs:
4954
- name: Build
5055
working-directory: ActionOpenDocumentTree
5156
run: ./gradlew assembleDebug
57+
- name: Upload build artifacts
58+
uses: actions/upload-artifact@v4
59+
with:
60+
name: ActionOpenDocumentTree-build
61+
path: ActionOpenDocumentTree/app/build/outputs/
5262

5363
ContentProviderPaging:
5464
name: ContentProviderPaging
@@ -63,6 +73,11 @@ jobs:
6373
- name: Build
6474
working-directory: ContentProviderPaging
6575
run: ./gradlew assembleDebug
76+
- name: Upload build artifacts
77+
uses: actions/upload-artifact@v4
78+
with:
79+
name: ContentProviderPaging-build
80+
path: ContentProviderPaging/app/build/outputs/
6681

6782
ContentProviderPagingKotlin:
6883
name: ContentProviderPagingKotlin
@@ -77,6 +92,11 @@ jobs:
7792
- name: Build
7893
working-directory: ContentProviderPagingKotlin
7994
run: ./gradlew assembleDebug
95+
- name: Upload build artifacts
96+
uses: actions/upload-artifact@v4
97+
with:
98+
name: ContentProviderPagingKotlin-build
99+
path: ContentProviderPagingKotlin/app/build/outputs/
80100

81101
FileManager:
82102
name: FileManager
@@ -91,6 +111,11 @@ jobs:
91111
- name: Build
92112
working-directory: FileManager
93113
run: ./gradlew assembleDebug
114+
- name: Upload build artifacts
115+
uses: actions/upload-artifact@v4
116+
with:
117+
name: FileManager-build
118+
path: FileManager/app/build/outputs/
94119

95120
FileProvider:
96121
name: FileProvider
@@ -105,6 +130,11 @@ jobs:
105130
- name: Build
106131
working-directory: FileProvider
107132
run: ./gradlew assembleDebug
133+
- name: Upload build artifacts
134+
uses: actions/upload-artifact@v4
135+
with:
136+
name: FileProvider-build
137+
path: FileProvider/app/build/outputs/
108138

109139
MediaStore:
110140
name: MediaStore
@@ -119,6 +149,11 @@ jobs:
119149
- name: Build
120150
working-directory: MediaStore
121151
run: ./gradlew assembleDebug
152+
- name: Upload build artifacts
153+
uses: actions/upload-artifact@v4
154+
with:
155+
name: MediaStore-build
156+
path: MediaStore/app/build/outputs/
122157

123158
SafDemos:
124159
name: SafDemos
@@ -133,6 +168,11 @@ jobs:
133168
- name: Build
134169
working-directory: SafDemos
135170
run: ./gradlew assembleDebug
171+
- name: Upload build artifacts
172+
uses: actions/upload-artifact@v4
173+
with:
174+
name: SafDemos-build
175+
path: SafDemos/app/build/outputs/
136176

137177
ScopedStorage:
138178
name: ScopedStorage
@@ -147,6 +187,11 @@ jobs:
147187
- name: Build
148188
working-directory: ScopedStorage
149189
run: ./gradlew assembleDebug
190+
- name: Upload build artifacts
191+
uses: actions/upload-artifact@v4
192+
with:
193+
name: ScopedStorage-build
194+
path: ScopedStorage/app/build/outputs/
150195

151196
SharingShortcuts:
152197
name: SharingShortcuts
@@ -161,6 +206,11 @@ jobs:
161206
- name: Build
162207
working-directory: SharingShortcuts
163208
run: ./gradlew assembleDebug
209+
- name: Upload build artifacts
210+
uses: actions/upload-artifact@v4
211+
with:
212+
name: SharingShortcuts-build
213+
path: SharingShortcuts/Application/build/outputs/
164214

165215
StorageClient:
166216
name: StorageClient
@@ -175,6 +225,11 @@ jobs:
175225
- name: Build
176226
working-directory: StorageClient
177227
run: ./gradlew assembleDebug
228+
- name: Upload build artifacts
229+
uses: actions/upload-artifact@v4
230+
with:
231+
name: StorageClient-build
232+
path: StorageClient/Application/build/outputs/
178233

179234
StorageProvider:
180235
name: StorageProvider
@@ -189,3 +244,8 @@ jobs:
189244
- name: Build
190245
working-directory: StorageProvider
191246
run: ./gradlew assembleDebug
247+
- name: Upload build artifacts
248+
uses: actions/upload-artifact@v4
249+
with:
250+
name: StorageProvider-build
251+
path: StorageProvider/Application/build/outputs/

0 commit comments

Comments
 (0)