-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main'
- Loading branch information
Showing
3 changed files
with
115 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: FxBlox Android Deploy | ||
|
||
on: [push] | ||
|
||
jobs: | ||
deploy-android: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '14' # Use the same Node.js version as your project requirements | ||
- name: Yarn Install | ||
run: yarn install | ||
- name: Ensure Symlink | ||
run: npm run ensure:symlink | ||
- name: Install CMake | ||
run: | | ||
echo "##[group]Install CMake" | ||
sdkmanager --install "cmake;3.10.2.4988404" | ||
yes | sdkmanager --licenses | ||
echo "##[endgroup]" | ||
- name: Get NPM Package Version | ||
run: echo "NPM_PACKAGE_VERSION=$(node -p "require('${{ github.workspace }}/apps/box/package.json').version")" >> $GITHUB_ENV | ||
- name: Change Android VersionCode and VersionName | ||
run: | | ||
NEW_VERSION_NAME=$NPM_PACKAGE_VERSION | ||
BUILD_GRADLE_PATH=${{ github.workspace }}/apps/box/android/app/build.gradle | ||
sed -i '' "s/versionName \".*\"/versionName \"$NEW_VERSION_NAME\"/" $BUILD_GRADLE_PATH | ||
- name: Build Android Release | ||
run: | | ||
cd ${{ github.workspace }}/apps/box/android | ||
./gradlew assembleRelease | ||
- name: Sign APK | ||
uses: r0adkll/sign-android-release@v1 | ||
with: | ||
releaseDirectory: app/build/outputs/apk/release | ||
signingKeyBase64: ${{ secrets.SIGNING_KEY_BASE64 }} | ||
alias: ${{ secrets.KEY_ALIAS }} | ||
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }} | ||
keyPassword: ${{ secrets.KEY_PASSWORD }} | ||
- name: Deploy to Google Play | ||
uses: r0adkll/upload-google-play@v1 | ||
with: | ||
serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }} | ||
packageName: land.fx.blox | ||
releaseFiles: app/build/outputs/apk/release/app-release.apk | ||
track: production |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: FxBlox IOS Deploy | ||
|
||
on: | ||
workflow_dispatch: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
deploy-ios: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Activate correct Ruby version | ||
run: | | ||
echo "##[group]Activate correct Ruby version" | ||
RUBY_VERSION=3.1.4 | ||
asdf install ruby $RUBY_VERSION | ||
asdf global ruby $RUBY_VERSION | ||
echo "##[endgroup]" | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20' | ||
- name: Yarn Install | ||
run: yarn install | ||
- name: Ensure Symlink | ||
run: npm run ensure:symlink | ||
- name: Cocoapods Install | ||
run: | | ||
cd ${{ github.workspace }}/apps/box/ios | ||
pod install | ||
- name: Get NPM Package Version | ||
run: echo "NPM_PACKAGE_VERSION=$(node -p "require('${{ github.workspace }}/apps/box/package.json').version")" >> $GITHUB_ENV | ||
- name: Set Xcode Build Number | ||
run: /usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString $NPM_PACKAGE_VERSION" "${{ github.workspace }}/apps/box/ios/Box/info.plist" | ||
- name: Xcode Archive & Export | ||
run: | | ||
xcodebuild -workspace ${{ github.workspace }}/apps/box/ios/Box.xcworkspace -scheme Box -configuration Release clean archive -archivePath ${{ github.workspace }}/build/Box.xcarchive | ||
xcodebuild -exportArchive -archivePath ${{ github.workspace }}/build/Box.xcarchive -exportOptionsPlist exportOptions.plist -exportPath ${{ github.workspace }}/build | ||
env: | ||
DEVELOPER_TEAM: 656TD8GM9B | ||
DISTRIBUTION_METHOD: app-store | ||
- name: Deploy to Appstore | ||
uses: yukiarrr/[email protected] | ||
with: | ||
project-path: ${{ github.workspace }}/apps/box/ios/Box.xcworkspace | ||
p12-base64: ${{ secrets.P12_BASE64 }} | ||
mobileprovision-base64: ${{ secrets.MOBILEPROVISION_BASE64 }} | ||
team-id: 656TD8GM9B | ||
certificate-password: ${{ secrets.CERTIFICATE_PASSWORD }} | ||
code-signing-identity: "iOS Distribution" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters