@@ -52,117 +52,117 @@ jobs:
5252 source-dir : build/app/outputs/flutter-apk
5353 destination-dir : app
5454
55- build-macos :
56- name : Build-ios
57- # https://github.com/actions/runner-images
58- # https://xcodereleases.com/
59- runs-on : macos-15
60- steps :
61- - name : Select Xcode version 16.3
62- run : sudo xcode-select -s /Applications/Xcode_16.3.app
55+ # build-macos:
56+ # name: Build-ios
57+ # # https://github.com/actions/runner-images
58+ # # https://xcodereleases.com/
59+ # runs-on: macos-15
60+ # steps:
61+ # - name: Select Xcode version 16.3
62+ # run: sudo xcode-select -s /Applications/Xcode_16.3.app
6363
6464
65- - name : Checkout code with submodules
66- uses : actions/checkout@v4
67- with :
68- submodules : recursive
65+ # - name: Checkout code with submodules
66+ # uses: actions/checkout@v4
67+ # with:
68+ # submodules: recursive
6969
70- - name : Setup .env file
71- run : |
72- echo "${{ secrets.DEV_ENV_FILE_CONTENT }}" > .env
73- shell : bash
74-
75- - uses : sheenhx/action-flutter-build-ios@main
76- with :
77- # always use --export-options-plist=ios/GithubActionsExportOptions.plist
78- build-cmd : flutter build ipa --build-number=$(( 15 + ${{ github.run_number }})) --export-options-plist=ios/GithubActionsExportOptions.plist
79- certificate-base64 : ${{ secrets.IOS_BUILD_CERTIFICATE_BASE64 }}
80- certificate-password : ${{ secrets.IOS_BUILD_CERTIFICATE_PASSWORD }}
81- provisioning-profile-base64 : ${{ secrets.IOS_MOBILE_PROVISIONING_PROFILE_BASE64 }}
82- keychain-password : ${{ secrets.IOS_GITHUB_KEYCHAIN_PASSWORD }}
83-
84- - name : Archive IPA
85- uses : actions/upload-artifact@v4
86- with :
87- name : release-ipa
88- # Try running the build locally with the build command to be sure of this path
89- path : build/ios/ipa/*.ipa
90-
91- build-macos-simulator :
92- name : Build-ios-simulator
93- # https://github.com/actions/runner-images
94- # https://xcodereleases.com/
95- runs-on : macos-15
96-
97- steps :
98- - name : Select Xcode version 16.3
99- run : sudo xcode-select -s /Applications/Xcode_16.3.app
70+ # - name: Setup .env file
71+ # run: |
72+ # echo "${{ secrets.DEV_ENV_FILE_CONTENT }}" > .env
73+ # shell: bash
74+
75+ # - uses: sheenhx/action-flutter-build-ios@main
76+ # with:
77+ # # always use --export-options-plist=ios/GithubActionsExportOptions.plist
78+ # build-cmd: flutter build ipa --build-number=$(( 15 + ${{ github.run_number }})) --export-options-plist=ios/GithubActionsExportOptions.plist
79+ # certificate-base64: ${{ secrets.IOS_BUILD_CERTIFICATE_BASE64 }}
80+ # certificate-password: ${{ secrets.IOS_BUILD_CERTIFICATE_PASSWORD }}
81+ # provisioning-profile-base64: ${{ secrets.IOS_MOBILE_PROVISIONING_PROFILE_BASE64 }}
82+ # keychain-password: ${{ secrets.IOS_GITHUB_KEYCHAIN_PASSWORD }}
83+
84+ # - name: Archive IPA
85+ # uses: actions/upload-artifact@v4
86+ # with:
87+ # name: release-ipa
88+ # # Try running the build locally with the build command to be sure of this path
89+ # path: build/ios/ipa/*.ipa
90+
91+ # build-macos-simulator:
92+ # name: Build-ios-simulator
93+ # # https://github.com/actions/runner-images
94+ # # https://xcodereleases.com/
95+ # runs-on: macos-15
96+
97+ # steps:
98+ # - name: Select Xcode version 16.3
99+ # run: sudo xcode-select -s /Applications/Xcode_16.3.app
100100
101- - name : Checkout code with submodules
102- uses : actions/checkout@v4
103- with :
104- submodules : recursive
101+ # - name: Checkout code with submodules
102+ # uses: actions/checkout@v4
103+ # with:
104+ # submodules: recursive
105105
106- - name : Setup .env file
107- run : |
108- echo "${{ secrets.DEV_ENV_FILE_CONTENT }}" > .env
109- shell : bash
110-
111- - uses : sheenhx/action-flutter-build-ios@main
112- with :
113- # always use --export-options-plist=ios/GithubActionsExportOptions.plist
114- build-cmd : flutter build ios --simulator --no-codesign --debug --dart-define=FLUTTER_BUILD_MODE=debug
115- certificate-base64 : ${{ secrets.IOS_BUILD_CERTIFICATE_BASE64 }}
116- certificate-password : ${{ secrets.IOS_BUILD_CERTIFICATE_PASSWORD }}
117- provisioning-profile-base64 : ${{ secrets.IOS_MOBILE_PROVISIONING_PROFILE_BASE64 }}
118- keychain-password : ${{ secrets.IOS_GITHUB_KEYCHAIN_PASSWORD }}
119-
120- - name : Archive .app
121- uses : actions/upload-artifact@v4
122- with :
123- name : simulator-app
124- # Try running the build locally with the build command to be sure of this path
125- path : build/ios/iphonesimulator/*.app
126-
127- upload-combined :
128- permissions : write-all
129- name : Combine and Upload Builds
130- needs : [build-apk, build-macos]
131- runs-on : ubuntu-latest
132- steps :
133- - name : Download Ubuntu artifact
134- uses : actions/download-artifact@v4
135- with :
136- name : release-apk
137- path : combined-builds/android
138-
139- - name : Download macOS artifact
140- uses : actions/download-artifact@v4
141- with :
142- name : release-ipa
143- path : combined-builds/iOS
144-
145- - name : Upload combined artifacts
146- uses : actions/upload-artifact@v4
147- with :
148- name : combined-builds
149- path : combined-builds
150-
151- - name : Generate
152- id : generate
153- uses : AcmeSoftwareLLC/app-build-number@v1
154- with :
155- timezone : Asia/Kathmandu
106+ # - name: Setup .env file
107+ # run: |
108+ # echo "${{ secrets.DEV_ENV_FILE_CONTENT }}" > .env
109+ # shell: bash
110+
111+ # - uses: sheenhx/action-flutter-build-ios@main
112+ # with:
113+ # # always use --export-options-plist=ios/GithubActionsExportOptions.plist
114+ # build-cmd: flutter build ios --simulator --no-codesign --debug --dart-define=FLUTTER_BUILD_MODE=debug
115+ # certificate-base64: ${{ secrets.IOS_BUILD_CERTIFICATE_BASE64 }}
116+ # certificate-password: ${{ secrets.IOS_BUILD_CERTIFICATE_PASSWORD }}
117+ # provisioning-profile-base64: ${{ secrets.IOS_MOBILE_PROVISIONING_PROFILE_BASE64 }}
118+ # keychain-password: ${{ secrets.IOS_GITHUB_KEYCHAIN_PASSWORD }}
119+
120+ # - name: Archive .app
121+ # uses: actions/upload-artifact@v4
122+ # with:
123+ # name: simulator-app
124+ # # Try running the build locally with the build command to be sure of this path
125+ # path: build/ios/iphonesimulator/*.app
126+
127+ # upload-combined:
128+ # permissions: write-all
129+ # name: Combine and Upload Builds
130+ # needs: [build-apk, build-macos]
131+ # runs-on: ubuntu-latest
132+ # steps:
133+ # - name: Download Ubuntu artifact
134+ # uses: actions/download-artifact@v4
135+ # with:
136+ # name: release-apk
137+ # path: combined-builds/android
138+
139+ # - name: Download macOS artifact
140+ # uses: actions/download-artifact@v4
141+ # with:
142+ # name: release-ipa
143+ # path: combined-builds/iOS
144+
145+ # - name: Upload combined artifacts
146+ # uses: actions/upload-artifact@v4
147+ # with:
148+ # name: combined-builds
149+ # path: combined-builds
150+
151+ # - name: Generate
152+ # id: generate
153+ # uses: AcmeSoftwareLLC/app-build-number@v1
154+ # with:
155+ # timezone: Asia/Kathmandu
156156
157- - name : Display the generated build number
158- run : echo "Build Number > ${{ steps.generate.outputs.build-number }}"
157+ # - name: Display the generated build number
158+ # run: echo "Build Number > ${{ steps.generate.outputs.build-number }}"
159159
160160
161- - uses : ncipollo/release-action@v1
162- with :
163- artifacts : " combined-builds/android/*.apk,combined-builds/iOS/*.ipa"
164- tag : ${{ steps.generate.outputs.build-number }}
165- name : " Nightly-v${{ steps.generate.outputs.build-number }}-iOS/Android-Visit mxc1usd.com"
166- generateReleaseNotes : true
167- body : >
168- <a href="https://play.google.com/store/apps/details?id=com.moonchain.app" target="_blank"><img width="500" alt="image" src="https://github.com/user-attachments/assets/802b4fa6-8978-4b01-8de7-68207a5f8d77"></a><a href="https://apps.apple.com/app/moonbase-the-mining-hub/id6736371768" target="_blank"><img width="500" alt="image" src="https://github.com/user-attachments/assets/ed4678e2-4099-498c-92ee-94b88b620c21"></a>
161+ # - uses: ncipollo/release-action@v1
162+ # with:
163+ # artifacts: "combined-builds/android/*.apk,combined-builds/iOS/*.ipa"
164+ # tag: ${{ steps.generate.outputs.build-number }}
165+ # name: "Nightly-v${{ steps.generate.outputs.build-number }}-iOS/Android-Visit mxc1usd.com"
166+ # generateReleaseNotes: true
167+ # body: >
168+ # <a href="https://play.google.com/store/apps/details?id=com.moonchain.app" target="_blank"><img width="500" alt="image" src="https://github.com/user-attachments/assets/802b4fa6-8978-4b01-8de7-68207a5f8d77"></a><a href="https://apps.apple.com/app/moonbase-the-mining-hub/id6736371768" target="_blank"><img width="500" alt="image" src="https://github.com/user-attachments/assets/ed4678e2-4099-498c-92ee-94b88b620c21"></a>
0 commit comments