-
-
Notifications
You must be signed in to change notification settings - Fork 7
123 lines (119 loc) · 4.55 KB
/
android.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# name: Android Release
# on:
# push:
# tags:
# - "*.*.*"
# jobs:
# android-build:
# name: Android Build & Deploy
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-java@v3.12.0
# with:
# distribution: "oracle"
# java-version: "17"
# - uses: subosito/flutter-action@v2
# with:
# flutter-version: "3.27.1"
# channel: "stable"
# - name: Install Dependencies
# run: flutter pub get
# - name: Decode Keystore
# run: |
# echo "${{ secrets.KEYSTORE_BASE64 }}" | base64 --decode > android/app/keystore.jks
# - name: Create key.properties
# run: |
# echo "storePassword=${{ secrets.KEYSTORE_PASSWORD }}" > android/key.properties
# echo "keyPassword=${{ secrets.KEY_PASSWORD }}" >> android/key.properties
# echo "keyAlias=${{ secrets.KEY_ALIAS }}" >> android/key.properties
# echo "storeFile=keystore.jks" >> android/key.properties
# - name: Build APK
# run: flutter build apk --release
# - name: Build App Bundle
# run: flutter build appbundle
# - name: Create Android Release
# uses: ncipollo/release-action@v1
# with:
# artifacts: "build/app/outputs/flutter-apk/app-release.apk,build/app/outputs/bundle/release/app-release.aab"
# tag: ${{ github.ref_name }}
# token: ${{ secrets.TOKEN }}
# - name: Deploy to Google Play
# uses: r0adkll/upload-google-play@v1
# with:
# serviceAccountJsonPlainText: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT }}
# packageName: com.yourpackage.name
# releaseFiles: build/app/outputs/bundle/release/app-release.aab
# track: production
# # ios-macos-build:
# # name: iOS and macOS Build & Deploy
# # runs-on: macos-latest
# # steps:
# # - uses: actions/checkout@v3
# # - uses: subosito/flutter-action@v2
# # with:
# # flutter-version: "3.27.1"
# # channel: "stable"
# # - name: Install Dependencies
# # run: flutter pub get
# # - name: Build IPA
# # run: flutter build ipa --no-codesign
# # - name: Compress Archives
# # run: |
# # cd build
# # tar -czf ios_build.tar.gz ios
# # - name: Create iOS Release
# # uses: ncipollo/release-action@v1
# # with:
# # artifacts: "build/ios_build.tar.gz"
# # tag: ${{ github.ref_name }}
# # token: ${{ secrets.TOKEN }}
# # allowUpdates: true
# # - name: Deploy to App Store
# # uses: apple-actions/upload-testflight-build@v1
# # with:
# # app-path: build/ios/ipa/app.ipa
# # apple-id: ${{ secrets.APPLE_ID }}
# # app-specific-id: ${{ secrets.APP_SPECIFIC_ID }}
# # key-id: ${{ secrets.APPLE_KEY_ID }}
# # issuer-id: ${{ secrets.APPLE_ISSUER_ID }}
# # key-content: ${{ secrets.APPLE_PRIVATE_KEY }}
# windows-build:
# name: Windows Build & Deploy
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v3
# - uses: subosito/flutter-action@v2
# with:
# flutter-version: "3.27.1"
# channel: "stable"
# - name: Install Dependencies
# run: flutter pub get
# - name: Build Windows
# run: flutter build windows
# - name: Create Windows Release
# uses: ncipollo/release-action@v1
# with:
# artifacts: "build/windows/runner/Release/*"
# tag: ${{ github.ref_name }}
# token: ${{ secrets.TOKEN }}
# allowUpdates: true
# - name: Configure Store Credentials
# uses: microsoft/store-submission@v1
# with:
# command: configure
# type: win32
# seller-id: ${{ secrets.MSSTORE_SELLER_ID }}
# product-id: ${{ secrets.MSSTORE_PRODUCT_ID }}
# tenant-id: ${{ secrets.MSSTORE_TENANT_ID }}
# client-id: ${{ secrets.MSSTORE_CLIENT_ID }}
# client-secret: ${{ secrets.MSSTORE_CLIENT_SECRET }}
# - name: Update Draft Submission
# uses: microsoft/store-submission@v1
# with:
# command: update
# product-update: '{"packages":[{"packageUrl":"https://cdn.contoso.us/prod/5.10.1.4420/ContosoIgniteInstallerFull.msi","languages":["en"],"architectures":["X64"],"isSilentInstall":true}]}'
# - name: Publish Submission
# uses: microsoft/store-submission@v1
# with:
# command: publish