Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
214 changes: 107 additions & 107 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
echo "$(( ${{ secrets.DEV_ENV_FILE_CONTENT }} + 67 ))" > .env
shell: bash

- uses: reasje/action-flutter-build-android@main
- uses: sheenhx/action-flutter-build-android@main
with:
keystore-base64: ${{ secrets.ANDROID_RELEASE_KEY }}
keystore-password: "${{ secrets.ANDROID_RELEASE_KEY_PASSWORD }}"
Expand All @@ -52,117 +52,117 @@ jobs:
source-dir: build/app/outputs/flutter-apk
destination-dir: app

# build-macos:
# name: Build-ios
# # https://github.com/actions/runner-images
# # https://xcodereleases.com/
# runs-on: macos-15
# steps:
# - name: Select Xcode version 16.3
# run: sudo xcode-select -s /Applications/Xcode_16.3.app
build-macos:
name: Build-ios
# https://github.com/actions/runner-images
# https://xcodereleases.com/
runs-on: macos-15
steps:
- name: Select Xcode version 16.3
run: sudo xcode-select -s /Applications/Xcode_16.3.app


# - name: Checkout code with submodules
# uses: actions/checkout@v4
# with:
# submodules: recursive
- name: Checkout code with submodules
uses: actions/checkout@v4
with:
submodules: recursive

# - name: Setup .env file
# run: |
# echo "${{ secrets.DEV_ENV_FILE_CONTENT }}" > .env
# shell: bash

# - uses: sheenhx/action-flutter-build-ios@main
# with:
# # always use --export-options-plist=ios/GithubActionsExportOptions.plist
# build-cmd: flutter build ipa --build-number=$(( 15 + ${{ github.run_number }})) --export-options-plist=ios/GithubActionsExportOptions.plist
# certificate-base64: ${{ secrets.IOS_BUILD_CERTIFICATE_BASE64 }}
# certificate-password: ${{ secrets.IOS_BUILD_CERTIFICATE_PASSWORD }}
# provisioning-profile-base64: ${{ secrets.IOS_MOBILE_PROVISIONING_PROFILE_BASE64 }}
# keychain-password: ${{ secrets.IOS_GITHUB_KEYCHAIN_PASSWORD }}

# - name: Archive IPA
# uses: actions/upload-artifact@v4
# with:
# name: release-ipa
# # Try running the build locally with the build command to be sure of this path
# path: build/ios/ipa/*.ipa

# build-macos-simulator:
# name: Build-ios-simulator
# # https://github.com/actions/runner-images
# # https://xcodereleases.com/
# runs-on: macos-15

# steps:
# - name: Select Xcode version 16.3
# run: sudo xcode-select -s /Applications/Xcode_16.3.app
- name: Setup .env file
run: |
echo "${{ secrets.DEV_ENV_FILE_CONTENT }}" > .env
shell: bash

- uses: sheenhx/action-flutter-build-ios@main
with:
# always use --export-options-plist=ios/GithubActionsExportOptions.plist
build-cmd: flutter build ipa --build-number=$(( 15 + ${{ github.run_number }})) --export-options-plist=ios/GithubActionsExportOptions.plist
certificate-base64: ${{ secrets.IOS_BUILD_CERTIFICATE_BASE64 }}
certificate-password: ${{ secrets.IOS_BUILD_CERTIFICATE_PASSWORD }}
provisioning-profile-base64: ${{ secrets.IOS_MOBILE_PROVISIONING_PROFILE_BASE64 }}
keychain-password: ${{ secrets.IOS_GITHUB_KEYCHAIN_PASSWORD }}

- name: Archive IPA
uses: actions/upload-artifact@v4
with:
name: release-ipa
# Try running the build locally with the build command to be sure of this path
path: build/ios/ipa/*.ipa

build-macos-simulator:
name: Build-ios-simulator
# https://github.com/actions/runner-images
# https://xcodereleases.com/
runs-on: macos-15

steps:
- name: Select Xcode version 16.3
run: sudo xcode-select -s /Applications/Xcode_16.3.app

# - name: Checkout code with submodules
# uses: actions/checkout@v4
# with:
# submodules: recursive
- name: Checkout code with submodules
uses: actions/checkout@v4
with:
submodules: recursive

# - name: Setup .env file
# run: |
# echo "${{ secrets.DEV_ENV_FILE_CONTENT }}" > .env
# shell: bash

# - uses: sheenhx/action-flutter-build-ios@main
# with:
# # always use --export-options-plist=ios/GithubActionsExportOptions.plist
# build-cmd: flutter build ios --simulator --no-codesign --debug --dart-define=FLUTTER_BUILD_MODE=debug
# certificate-base64: ${{ secrets.IOS_BUILD_CERTIFICATE_BASE64 }}
# certificate-password: ${{ secrets.IOS_BUILD_CERTIFICATE_PASSWORD }}
# provisioning-profile-base64: ${{ secrets.IOS_MOBILE_PROVISIONING_PROFILE_BASE64 }}
# keychain-password: ${{ secrets.IOS_GITHUB_KEYCHAIN_PASSWORD }}

# - name: Archive .app
# uses: actions/upload-artifact@v4
# with:
# name: simulator-app
# # Try running the build locally with the build command to be sure of this path
# path: build/ios/iphonesimulator/*.app

# upload-combined:
# permissions: write-all
# name: Combine and Upload Builds
# needs: [build-apk, build-macos]
# runs-on: ubuntu-latest
# steps:
# - name: Download Ubuntu artifact
# uses: actions/download-artifact@v4
# with:
# name: release-apk
# path: combined-builds/android

# - name: Download macOS artifact
# uses: actions/download-artifact@v4
# with:
# name: release-ipa
# path: combined-builds/iOS

# - name: Upload combined artifacts
# uses: actions/upload-artifact@v4
# with:
# name: combined-builds
# path: combined-builds

# - name: Generate
# id: generate
# uses: AcmeSoftwareLLC/app-build-number@v1
# with:
# timezone: Asia/Kathmandu
- name: Setup .env file
run: |
echo "${{ secrets.DEV_ENV_FILE_CONTENT }}" > .env
shell: bash

- uses: sheenhx/action-flutter-build-ios@main
with:
# always use --export-options-plist=ios/GithubActionsExportOptions.plist
build-cmd: flutter build ios --simulator --no-codesign --debug --dart-define=FLUTTER_BUILD_MODE=debug
certificate-base64: ${{ secrets.IOS_BUILD_CERTIFICATE_BASE64 }}
certificate-password: ${{ secrets.IOS_BUILD_CERTIFICATE_PASSWORD }}
provisioning-profile-base64: ${{ secrets.IOS_MOBILE_PROVISIONING_PROFILE_BASE64 }}
keychain-password: ${{ secrets.IOS_GITHUB_KEYCHAIN_PASSWORD }}

- name: Archive .app
uses: actions/upload-artifact@v4
with:
name: simulator-app
# Try running the build locally with the build command to be sure of this path
path: build/ios/iphonesimulator/*.app

upload-combined:
permissions: write-all
name: Combine and Upload Builds
needs: [build-apk, build-macos]
runs-on: ubuntu-latest
steps:
- name: Download Ubuntu artifact
uses: actions/download-artifact@v4
with:
name: release-apk
path: combined-builds/android

- name: Download macOS artifact
uses: actions/download-artifact@v4
with:
name: release-ipa
path: combined-builds/iOS

- name: Upload combined artifacts
uses: actions/upload-artifact@v4
with:
name: combined-builds
path: combined-builds

- name: Generate
id: generate
uses: AcmeSoftwareLLC/app-build-number@v1
with:
timezone: Asia/Kathmandu

# - name: Display the generated build number
# run: echo "Build Number > ${{ steps.generate.outputs.build-number }}"
- name: Display the generated build number
run: echo "Build Number > ${{ steps.generate.outputs.build-number }}"


# - uses: ncipollo/release-action@v1
# with:
# artifacts: "combined-builds/android/*.apk,combined-builds/iOS/*.ipa"
# tag: ${{ steps.generate.outputs.build-number }}
# name: "Nightly-v${{ steps.generate.outputs.build-number }}-iOS/Android-Visit mxc1usd.com"
# generateReleaseNotes: true
# body: >
# <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>
- uses: ncipollo/release-action@v1
with:
artifacts: "combined-builds/android/*.apk,combined-builds/iOS/*.ipa"
tag: ${{ steps.generate.outputs.build-number }}
name: "Nightly-v${{ steps.generate.outputs.build-number }}-iOS/Android-Visit mxc1usd.com"
generateReleaseNotes: true
body: >
<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>
2 changes: 1 addition & 1 deletion .github/workflows/submit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
echo "$(( ${{ secrets.PROD_ENV_FILE_CONTENT }} + 67 ))" > .env
shell: bash

- uses: reasje/action-flutter-build-android@main
- uses: sheenhx/action-flutter-build-android@main
with:
keystore-base64: ${{ secrets.ANDROID_RELEASE_KEY }}
keystore-password: "${{ secrets.ANDROID_RELEASE_KEY_PASSWORD }}"
Expand Down
2 changes: 1 addition & 1 deletion packages/shared
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 2.0.13
version: 2.0.15

environment:
sdk: ">=2.19.0 <=3.6.1"
Expand Down
Loading