-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update version github action (#1802)
* remove: unused code * remove: .envrc * update: .gitignore * add: react-native-config * feat: migrate to react-native-config * fix: tests * add: scripts * show .env file content * remove: mmkv key * fix: quotes * fix: MMKV_KEY * add: FOR_DETOX flag for android * update: Gemfile.lock * add: submit_latest_to_review job
- Loading branch information
1 parent
95d1d6f
commit 0cb608f
Showing
60 changed files
with
813 additions
and
518 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
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
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
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
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,12 @@ | ||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
|
||
jobs: | ||
releaseAfterMerge: | ||
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'releaseAfterMerge') | ||
runs-on: self-hosted | ||
steps: | ||
- run: | | ||
echo ReleaseAfterMerge action |
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,34 @@ | ||
name: Submit latest to Review | ||
|
||
on: | ||
workflow_dispatch: | ||
workflow_call: | ||
|
||
jobs: | ||
submit_latest_to_review: | ||
runs-on: self-hosted | ||
steps: | ||
- name: Show self-hosted machine infomation | ||
run: uname -a | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.SERVICE_TOKEN }} | ||
|
||
- name: Decode secrets | ||
run: | | ||
echo ${{secrets.GOOGLE_SERVICE_ACCOUNT}} | base64 -d > android/app/google-account.json | ||
- name: Install Fastlane | ||
run: | | ||
bundle install | ||
- name: Execute Fastlane command | ||
run: | | ||
bundle exec fastlane ios submit_latest_to_review | ||
bundle exec fastlane android submit_latest_to_review | ||
env: | ||
APPLE_KEY_ID: ${{ secrets.APPLE_KEY_ID }} | ||
APPLE_ISSUER_ID: ${{ secrets.APPLE_ISSUER_ID }} | ||
APPLE_KEY_CONTENT: ${{ secrets.APPLE_KEY_CONTENT }} | ||
DEVELOPER_APP_IDENTIFIER: ${{ secrets.IOS_IDENTIFIER }} |
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,36 @@ | ||
name: Update version | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version_type: | ||
type: choice | ||
description: Version type to update | ||
default: patch | ||
options: | ||
- major | ||
- minor | ||
- patch | ||
|
||
jobs: | ||
update_version: | ||
runs-on: self-hosted | ||
steps: | ||
- name: Show self-hosted machine infomation | ||
run: uname -a | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.SERVICE_TOKEN }} | ||
|
||
- name: Execute Update script | ||
run: | | ||
yarn env:update ${{github.event.inputs.version_type}} | ||
- name: Create a commit | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Build" | ||
git pull origin main | ||
git commit -am "update: version" | ||
git push --force-with-lease |
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 |
---|---|---|
|
@@ -84,3 +84,6 @@ google-account.json | |
|
||
# e2e tests artifacts | ||
artifacts/* | ||
|
||
# react-native-config codegen | ||
ios/tmp.xcconfig |
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
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
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
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
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
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
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
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,10 @@ | ||
// | ||
// Config.xcconfig | ||
// haqq | ||
// | ||
// Created by Nikita Ragozin on 18.03.2024. | ||
// | ||
|
||
// Configuration settings file format documentation can be found at: | ||
// https://help.apple.com/xcode/#/dev745c5c974 | ||
#include? "tmp.xcconfig" |
Oops, something went wrong.