You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28-25Lines changed: 28 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
1
# GitHub Action — Get Target Platforms of Your Flutter Project from the pubspec File.
2
2
3
-
This GitHub Action (written in composite run steps) allows you to leverage GitHub Actions to get the [Flutter](https://flutter.dev) Platforms from the pubspec file.
3
+
This GitHub Action allows you to get The Target Platforms from the pubspec file with Name of it!
4
+
5
+
also optionally you can get value of any key inside pubspec.yaml file with passing 'custom_key' to it!
4
6
5
7
## Usage
6
8
### Pre-requisites
@@ -9,18 +11,21 @@ Create a workflow `.yml` file in your `.github/workflows` directory. An [example
9
11
### Inputs
10
12
For more information on this input, see the [Workflow syntax for GitHub Actions](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepswith)
11
13
12
-
*`pubspec-file-path`: The pubspec.yaml file path. Optional. Default: `pubspec.yaml`
14
+
*`pubspec_path`: The pubspec.yaml file path. Optional. Default: `pubspec.yaml`
15
+
*`custom_key`: a custom key for retrive from pubspec.yaml file(optional).
13
16
14
17
### Outputs
15
18
For more information on this output, see the [Workflow syntax for GitHub Actions](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idoutputs) and the [Context and expression syntax for GitHub Actions](https://docs.github.com/actions/reference/context-and-expression-syntax-for-github-actions#steps-context)
16
19
17
20
*`name`: your Flutter project name
18
-
*`android`: your Flutter project should Release on android platform
19
-
*`ios`: your Flutter project should Release on ios platform
20
-
*`web`: your Flutter project should Release on web platform
21
-
*`windows`: your Flutter project should Release on windows platform
22
-
*`linux`: your Flutter project should Release on linux platform
23
-
*`macos`: your Flutter project should Release on macos platform
21
+
*`android`: your Flutter project should Release on android platform(String Boolean)
22
+
*`ios`: your Flutter project should Release on ios platform(String Boolean)
23
+
*`web`: your Flutter project should Release on web platform(String Boolean)
24
+
*`windows`: your Flutter project should Release on windows platform(String Boolean)
25
+
*`linux`: your Flutter project should Release on linux platform(String Boolean)
26
+
*`macos`: your Flutter project should Release on macos platform(String Boolean)
27
+
*`macos`: your Flutter project should Release on macos platform(String Boolean)
28
+
*`custom_value`: value of the custom key retrived from pubspec.yaml file
24
29
25
30
### Common workflow
26
31
@@ -33,7 +38,8 @@ platforms:
33
38
windows:
34
39
macos:
35
40
```
36
-
2. Use the action's output as an input to [Flutter action](https://github.com/marketplace/actions/flutter-action). For example:
A special mention goes to [@daohoangson](https://github.com/daohoangson), who came up with the initial solution at [subosito/flutter-action/issues/47#issuecomment-675821988](https://github.com/subosito/flutter-action/issues/47#issuecomment-675821988).
60
-
61
-
### Flutter Workflows
62
-
63
-
This is used in my opinionated [GitHub Actions: Flutter Workflows](https://github.com/zgosalvez/github-actions-flutter-workflows) repository along with other actions for a complete end-to-end DevOps experience.
64
-
65
-
## License
66
-
The scripts and documentation in this project are released under the [MIT License](LICENSE.md)
0 commit comments