flutter-action | Flutter environment for use in GitHub Actions | Continous Integration library
kandi X-RAY | flutter-action Summary
kandi X-RAY | flutter-action Summary
Flutter environment for use in GitHub Actions. It works on Linux, Windows, and macOS.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of flutter-action
flutter-action Key Features
flutter-action Examples and Code Snippets
Community Discussions
Trending Discussions on flutter-action
QUESTION
I use the following Dockerfile to create an image that I then push to google cloud container registry as a private image. I want to run my CD workflow in my workflow so that I can fetch deployment credentials that I store within my image.
...Side Note: Not sure if this is the safest method to be managing sensitive files such as
.jks
files I need to deploy my app to play store. I'd appreciate it if anyone could shed some light on this as well (Not sure if I should move this side note to a different SO question).
ANSWER
Answered 2021-May-22 at 23:55I found the solution to the problem.
I was just missing xz-utils on my container so I updated my docker image to install it
Referenced from the related github issue here
QUESTION
When I compile my project in Github Actions(bundle exec fastlane beta
),shows this error:
ANSWER
Answered 2021-Mar-15 at 01:44It maybe the null-safety of Flutter 2.0.1 cause build release failed(I found other error may cause this error, but the build error tips has no relation with the real error). I fix it by prebuild project add this line in workflow ci file:
QUESTION
In my project I have some JSON files that are used to get environment configurations at runtime through an entrypoint to the main dart file, they hold sensitive data so I put their containing folder in the .gitignore
file.
I have written a test that passes when I run it locally, but fails when triggered by the github action because of this error:
...ANSWER
Answered 2021-Feb-11 at 00:42You can use GitHub Action secrets.
Put your dev.json
contents in a secret (for example, DEV_JSON_CONTENTS
), and write it to the correct location with a command.
QUESTION
So I'm trying to deploy my flutter web app using GitHub pages, but I'm facing a weird issue. So I have my portfolio on imgkl.github.io and I'm trying to deploy another app called fl_catalogue which has the URL, imgkl.github.io/fl_catalogue/. But when I try to go to the fl_catalogue app, it takes me to my portfolio.
I'm deploying the site, using this workflow.
...ANSWER
Answered 2021-Jan-30 at 18:51You probably did not change the base path in web/index.html
QUESTION
When the following action is run, it fails on flutter analyze
. If I remove it, it fails later on flutter build
. Both commands work fine locally. I understand the message, but fail to grasp what might be wrong with the package path.
GitHub action error:
...ANSWER
Answered 2021-Jan-25 at 08:59The issue was in a upper case / lower case file name typo. OSX filesystem is by default case insensitive, while Ubuntu, on which the GitHub Action runs, is not.
QUESTION
when I build the ios project using this command in Flutter in github actions(by the way, using the same command in my local macOS catalina 10.15.7 and xcode 12.3 works fine):
...ANSWER
Answered 2021-Jan-23 at 11:18Your build log shows the following error:
QUESTION
If I build my app in release mode locally it works, but when I try to do it remotely with continuous integration on Github Actions, I get the error:
error: Build input file cannot be found: '/Users/runner/work/Downloads/GoogleService-Info.plist' (in target 'Runner' from project 'Runner')
Locally the file is in path /Users/benjamin/Downloads/GoogleService-Info.plist
. Is the path /Users/runner/work/Downloads/GoogleService-Info.plist
potentially incorrect? Any idea how to find out what it should be and how to set it to that? Since it seems kind of like it is trying to store it in the same folder structure but not on my computer. Can I just upload the file to the continuous integration server on Github Actions?
It is run on Github Actions with this workflow file:
flutter-ci.yml:
...ANSWER
Answered 2021-Jan-04 at 05:49As the error suggests, the Google-Info.plist is not available in the provided path. This happens since your username is not the same as the username used by Github actions and also, you have not loaded it to the Downloads directory. I would suggest checking it into your version control and place it inside the ios directory. Remember to update your references
You could store it somewhere and download it to your Github Actions instance. But loading it directly with the rest of your files is much easier and convenient
Warning!Google-Info.plist can be checked into source control. But others can misuse it if your services are not well protected by security rules. For open source projects, it is suggested to guide others to setup their own Firebase project. If you are using a private repository then this does not apply. Learn more here
QUESTION
I'm using the following Actions YAML to try to build an Android APK from a Flutter app:
...ANSWER
Answered 2020-Dec-25 at 20:29As per the notes you either need to specify an existing tag or specify a branch or commit for the commit
input of the action, based on which a tag will be created:
- You must provide a tag either via the action input or the git ref (i.e push / create a tag). If you do not the action will fail.
- If the tag of the release you are creating does not exist yet, you should set both the
tag
andcommit
action inputs.commit
can point to a commit hash or a branch name (ex -main
).
from https://github.com/ncipollo/release-action#notes
Using the following will give you a new version tag with every run, where the last place of the version is incremented for every run.
QUESTION
ANSWER
Answered 2020-May-04 at 22:53Instead of using the local.properties file, set ndkVersion
in your build.gradle to match the one available on your CI server. i.e.
QUESTION
I am trying to generate a android debug keystore file through github actions workflow, and it generates successfully too, but an error generates after the first keytool
command.
The workflow YAML -
...ANSWER
Answered 2020-Apr-04 at 18:56I found the problem.
The workflow was failing because the keytool
was trying to create debug.keystore file in C:\Users\runneradmin\.android
but the folder was not created at the time of execution.
Updated YAML -
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install flutter-action
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page