Skip to content

Commit 5b98286

Browse files
committed
Solved the disk storage issue
Signed-off-by: uju09 <24bcs012@iiitdwd.ac.in>
1 parent 2d9ef05 commit 5b98286

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

.github/workflows/build_and_deploy.yml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,23 @@ jobs:
2424
- name: Checkout repository
2525
uses: actions/checkout@v4
2626

27+
- name: Show disk usage before cleanup
28+
run: df -h /
29+
30+
- name: Free disk space on runner
31+
uses: jlumbroso/free-disk-space@main
32+
with:
33+
tool-cache: false
34+
android: true
35+
dotnet: true
36+
haskell: true
37+
large-packages: true
38+
docker-images: true
39+
swap-storage: true
40+
41+
- name: Show disk usage after cleanup
42+
run: df -h /
43+
2744
- name: Setup Java
2845
uses: actions/setup-java@v4
2946
with:
@@ -38,6 +55,15 @@ jobs:
3855
with:
3956
flutter-version: ${{ env.FLUTTER_VERSION }}
4057

58+
- name: Clean previous build and caches
59+
run: |
60+
flutter clean
61+
rm -rf build
62+
cd android && ./gradlew clean && cd -
63+
rm -rf ~/.gradle/caches
64+
rm -rf ~/.gradle/daemon
65+
rm -rf ~/.android/build-cache
66+
4167
- name: Decode Android keystore
4268
run: echo "${{ secrets.ANDROID_KEYSTORE }}" | base64 --decode > ${{ env.KEYSTORE_PATH }}
4369

@@ -90,6 +116,6 @@ jobs:
90116
with:
91117
allowUpdates: true
92118
artifacts: ${{ env.APK_RELEASE_PATH }}
93-
artifactContentType: apk
119+
artifactContentType: application/vnd.android.package-archive
94120
generateReleaseNotes: true
95121
tag: latest_build

0 commit comments

Comments
 (0)