File tree Expand file tree Collapse file tree 2 files changed +24
-17
lines changed Expand file tree Collapse file tree 2 files changed +24
-17
lines changed Original file line number Diff line number Diff line change @@ -50,18 +50,18 @@ jobs:
50
50
- run : flutter pub get
51
51
52
52
# Flutter android apk build command.
53
- # - run: flutter build apk
53
+ - run : flutter build apk
54
54
- run : flutter build apk --split-per-abi
55
55
56
56
# Flutter ios ipa build command.
57
- # - run: |
58
- # flutter build ios --no-codesign
59
- # cd build/ios/iphoneos
60
- # mkdir Payload
61
- # cd Payload
62
- # ln -s ../Runner.app
63
- # cd ..
64
- # zip -r app.ipa Payload
57
+ - run : |
58
+ flutter build ios --no-codesign
59
+ cd build/ios/iphoneos
60
+ mkdir Payload
61
+ cd Payload
62
+ ln -s ../Runner.app
63
+ cd ..
64
+ zip -r app.ipa Payload
65
65
66
66
# Flutter web release command.
67
67
- run : flutter build web --web-renderer html --release
81
81
- name : Push to Release
82
82
uses : ncipollo/release-action@v1
83
83
with :
84
- # artifacts: "build/app/outputs/flutter-apk/*,build/ios/iphoneos/app.ipa"
85
- artifacts : " build/app/outputs/flutter-apk/*"
84
+ artifacts : " build/app/outputs/flutter-apk/*,build/ios/iphoneos/app.ipa"
86
85
tag : ${{env.my_tag}}
87
86
token : ${{env.my_secret}}
Original file line number Diff line number Diff line change @@ -6,11 +6,19 @@ A new Flutter project.
6
6
7
7
This project is a starting point for a Flutter application.
8
8
9
- A few resources to get you started if this is your first Flutter project:
9
+ ## Steps
10
10
11
- - [ Lab: Write your first Flutter app] ( https://docs.flutter.dev/get-started/codelab )
12
- - [ Cookbook: Useful Flutter samples] ( https://docs.flutter.dev/cookbook )
11
+ - Create a new Flutter project
12
+ - Copy the full .github folder from this repo into the new project
13
+ - Create a new repo on GitHub
14
+ - Generate a new personal access token with the repo scope
15
+ - Replace your credentials in the .github/workflows/main.yml file (see below)
13
16
14
- For help getting started with Flutter development, view the
15
- [ online documentation] ( https://docs.flutter.dev/ ) , which offers tutorials,
16
- samples, guidance on mobile development, and a full API reference.
17
+ ```
18
+ my_repo: "sabikrahat/github_workflow_flutter_project.git"
19
+ my_secret: "${{secrets.WORKFLOW_TOKEN}}"
20
+ my_email: "sabikrahat72428@gmail.com"
21
+ my_name: "Md. Sabik Alam Rahat"
22
+ my_tag: "v1.0.${{github.run_number}}"
23
+ ```
24
+
You can’t perform that action at this time.
0 commit comments