-
-
Notifications
You must be signed in to change notification settings - Fork 197
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
Push the apk to release #4
Comments
You can use another action for that purpose, like, https://github.com/marketplace/actions/github-action-publish-binaries. So, you can: steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v1
with:
flutter-version: '1.7.8+hotfix.4'
- run: flutter pub get
- run: flutter test
- run: flutter build apk
- uses: skx/github-action-publish-binaries@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: 'build/app/outputs/apk/release/app-release.apk' |
@subosito
The github-action logs: Could you give me some help?😊😊 |
Mine return succesful and provide me a apk link. https://uploads.github.com/repos/mirkancal/{repo_name}/releases/null/assets?name=app-release.apk However I can't see it on releases tab, also I can't view it via link. {"message":"Bad Content-Length: ","request_id":"{id of the request}"} My project is in the private repo, is it related? .yml I had is:
|
I was able to push the APK to release using a different github action. You can read about it here - https://link.medium.com/1q1D4Fgbv0 |
Hi @nabilnalakath, my workflow pushes to actions storage fine, you can take a look at this workflow file: deploy-android:
name: Deploy Android app
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v1
with:
flutter-version: '1.9.1+hotfix.4'
channel: 'stable'
- run: cd ./iwfpapp && flutter build apk --release
- name: upload artifects
uses: actions/upload-artifact@master
with:
name: android-app
path: iwfpapp/build/app/outputs |
Awesome, closing this then 👍 |
Hello,I want to know how to put the apk file generated by the github-action into the release of my github project.😊😊
The text was updated successfully, but these errors were encountered: