-
Notifications
You must be signed in to change notification settings - Fork 255
fix: The release of APK is fixed. #602
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
uju09
wants to merge
12
commits into
AOSSIE-Org:dev
Choose a base branch
from
uju09:build_deploy_workflow
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 10 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
b063ecb
Merge pull request #601 from AOSSIE-Org/dev
M4dhav 0cd58c7
fix: Build and deploy workflow
uju09 bd6002e
Revert "fix: Build and deploy workflow"
uju09 c55d8cd
fix: added env for APK release
uju09 31e6659
Updated
uju09 2d9ef05
Reverted changes
uju09 5b98286
Solved the disk storage issue
uju09 7bc29eb
Reverted the artifact change.
uju09 ef6000c
Fixing android error
uju09 c17d863
Added free disk space on runner
uju09 ba7af79
Fixed typo and updated release-action to v2
uju09 12dc271
Reverted version changes.
uju09 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -24,6 +24,23 @@ jobs: | |
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Show disk usage before cleanup | ||
| run: df -h / | ||
|
|
||
| - name: Free disk space on runner | ||
| uses: jlumbroso/free-disk-space@main | ||
| with: | ||
| tool-cache: true | ||
| android: false | ||
| dotnet: true | ||
| haskell: true | ||
| large-packages: true | ||
| docker-images: true | ||
| swap-storage: true | ||
|
|
||
| - name: Show disk usage after cleanup | ||
| run: df -h / | ||
|
|
||
| - name: Setup Java | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
|
|
@@ -37,6 +54,19 @@ jobs: | |
| uses: subosito/flutter-action@v2 | ||
| with: | ||
| flutter-version: ${{ env.FLUTTER_VERSION }} | ||
| channel: stable | ||
|
|
||
| - name: Clean Flutter project | ||
| run: | | ||
| flutter clean | ||
| rm -rf build | ||
| cd android && ./gradlew clean && cd - | ||
| rm -rf ~/.gradle/caches | ||
| rm -rf ~/.gradle/daemon | ||
| rm -rf ~/.android/build-cache | ||
|
|
||
| - name: Show disk usage after cleanup | ||
| run: df -h / | ||
|
|
||
| - name: Decode Android keystore | ||
| run: echo "${{ secrets.ANDROID_KEYSTORE }}" | base64 --decode > ${{ env.KEYSTORE_PATH }} | ||
|
|
@@ -77,6 +107,8 @@ jobs: | |
| needs: build_android | ||
| permissions: | ||
| contents: write | ||
| env: | ||
| APK_RELEASE_PATH: apk-release/app-release.apk | ||
| steps: | ||
| - name: Download APK artifact | ||
| uses: actions/download-artifact@v4 | ||
|
|
@@ -87,7 +119,7 @@ jobs: | |
| uses: ncipollo/[email protected] | ||
| with: | ||
| allowUpdates: true | ||
| artifacts: ${{ env.APK_PATH }} | ||
| artifacts: ${{ env.APK_RELEASE_PATH }} | ||
| artifactContentType: apk | ||
| generateReleaseNotes: true | ||
| tag: latest_build | ||
| tag: latest_build | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we even have any of these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had no idea what we have, so I thought to give it a try, and also it is future proof to clear the disk storage.