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
For a more detailed guide, including tips and tricks, check out [our blog][very_good_workflows_blog_link].
@@ -386,6 +392,134 @@ jobs:
386
392
working_directory: examples/my_project
387
393
```
388
394
395
+
## Flutter Pub Publish Workflow
396
+
397
+
### Steps
398
+
399
+
The Flutter Pub Publish workflow consists of the following steps:
400
+
401
+
1. Install dependencies
402
+
2. Setup pub credentials
403
+
3. Dry run
404
+
4. Publish
405
+
406
+
### Inputs
407
+
408
+
#### `flutter_channel`
409
+
410
+
**Optional** The Flutter release channel to use (e.g. `stable`).
411
+
412
+
**Default** `"stable"`
413
+
414
+
#### `flutter_version`
415
+
416
+
**Optional** The Flutter SDK version to use (e.g. `2.8.1`).
417
+
418
+
**Default** `""`
419
+
420
+
#### `working_directory`
421
+
422
+
**Optional** The path to the root of the Flutter package.
423
+
424
+
**Default** `"."`
425
+
426
+
#### `runs_on`
427
+
428
+
**Optional** An optional operating system on which to run the workflow.
429
+
430
+
**Default** `"ubuntu-latest"`
431
+
432
+
#### `pub_credentials`
433
+
434
+
**Required** The pub credentials needed for publishing. This can be retrieved by reading out your `pub-credentials.json` on your system after you ran a `flutter pub login`. The location of the file is different per operating system:
The Dart Pub Publish workflow consists of the following steps:
469
+
470
+
1. Install dependencies
471
+
2. Setup pub credentials
472
+
3. Dry run
473
+
4. Publish
474
+
475
+
### Inputs
476
+
477
+
#### `dart_sdk`
478
+
479
+
**Optional** Which Dart SDK version to use. It can be a version (e.g. `2.12.0`) or a channel (e.g. `stable`):
480
+
481
+
**Default** `"stable"`
482
+
483
+
#### `working_directory`
484
+
485
+
**Optional** The path to the root of the Dart package.
486
+
487
+
**Default** `"."`
488
+
489
+
#### `runs_on`
490
+
491
+
**Optional** An optional operating system on which to run the workflow.
492
+
493
+
**Default** `"ubuntu-latest"`
494
+
495
+
#### `pub_credentials`
496
+
497
+
**Required** The pub credentials needed for publishing. This can be retrieved by reading out your `pub-credentials.json` on your system after you ran a `dart pub login`, the location of the file is different per operating system:
0 commit comments