Reputation: 1071
I have created a workflow in github action to build a flutter web app and deploy it into github page. The name of the flutter repository that i am working into it come with uppercase.
...
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
with:
channel: stable
- uses: username/RepoWithUpperCase@main
...
In this case when the workflow come to this action step:
- run: flutter create .
shell: bash
working-directory: ${{inputs.workingDir}}
give this error
"RepoWithUpperCase" is not a valid Dart package name.
I solved this error by rename the repository to lowerCase by refer to this
So my question is: how to solve this issue without rename the repository, in other word how the repository to be cloned in the Ubuntu VM with directory name use small caps ?
Upvotes: 1
Views: 714
Reputation: 8433
The name of the directory is the default when creating a new flutter app using flutter create .
.
You can change the name by passing --project-name
, like so:
> flutter create --project-name repo_with_upper_case .
NB: are you sure you need to run flutter create
every time though? Isn't the repo you're cloning already a flutter project?
Upvotes: 2