This repository has been archived by the owner on Oct 14, 2024. It is now read-only.
forked from facebook/yoga
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* config project yoga android * adjust git * remove local propertiesx * beagle yoga * adjust version soloader * adjust fastlane * adjust workflow release * remove workflow ci * adjust workflow * temporary deploy * current branch * adjust workflow * adjust workflow * adjust publish * adjust workflow release * remove gem file lock Co-authored-by: Uzias Ferreira <[email protected]>
- Loading branch information
1 parent
4f125e4
commit ed60928
Showing
125 changed files
with
312 additions
and
699 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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: Beagle Release | ||
|
||
on: | ||
workflow_run: | ||
workflows: [ "Beagle Yoga Release" ] | ||
types: | ||
- completed | ||
jobs: | ||
generate-release: | ||
name: Generate release | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Read secrets from AWS Secrets Manager into environment variables | ||
uses: abhilash1in/[email protected] | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: us-east-1 | ||
secrets: | | ||
beagle/core/* | ||
parse-json: true | ||
- name: Install Fastlane | ||
run: bundle install | ||
- name: Deploy new version | ||
env: | ||
REPO_TOKEN: ${{ env.BEAGLE_CORE_GITHUB_GITHUB_TOKEN }} | ||
NAME_REPO_TOKEN: ${{ env.BEAGLE_CORE_GITHUB_GITHUB_USER }} | ||
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ env.BEAGLE_CORE_ARTIFACT_SONATYPE_NEXUS_USERNAME }} | ||
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ env.BEAGLE_CORE_ARTIFACT_SONATYPE_NEXUS_PASSWORD }} | ||
GPG_KEY_CONTENTS: ${{ env.BEAGLE_CORE_ARTIFACT_GPG_KEY_CONTENTS }} | ||
ORG_GRADLE_PROJECT_SIGNINGKEYID: ${{ env.BEAGLE_CORE_ARTIFACT_ORG_GRADLE_PROJECT_SIGNINGKEYID }} | ||
ORG_GRADLE_PROJECT_SIGNINGPASSWORD: ${{ env.BEAGLE_CORE_ARTIFACT_ORG_GRADLE_PROJECT_SIGNINGPASSWORD }} | ||
GITHUB_USER: ${{ env.BEAGLE_CORE_GITHUB_GITHUB_USER }} | ||
GITHUB_TOKEN: ${{ env.BEAGLE_CORE_GITHUB_GITHUB_TOKEN }} | ||
run: bundle exec fastlane android deploy_to_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 |
---|---|---|
|
@@ -65,3 +65,9 @@ Carthage/Build | |
.gradle | ||
# NDK/CMake | ||
.externalNativeBuild | ||
|
||
|
||
**/.idea/* | ||
**/.cxx/* | ||
local.properties | ||
Gemfile.lock |
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,6 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'fastlane' | ||
|
||
plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile') | ||
eval_gemfile(plugins_path) if File.exist?(plugins_path) |
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 was deleted.
Oops, something went wrong.
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,2 @@ | ||
json_key_file("") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one | ||
package_name("") # e.g. com.krausefx.app |
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,19 @@ | ||
### | ||
### Android | ||
### | ||
|
||
platform :android do | ||
|
||
desc "Deploy current code to stage" | ||
lane :deploy_to_stage do | ||
gradle(task: "assemble") | ||
gradle(task: "uploadArchives --no-daemon --no-parallel") | ||
gradle(task: "closeAndReleaseRepository") | ||
end | ||
|
||
desc "Deploy current code to production" | ||
lane :deploy_to_production do | ||
sh "bash ./release/maven_signing.sh" | ||
deploy_to_stage | ||
end | ||
end |
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,3 @@ | ||
# Autogenerated by fastlane | ||
# | ||
# Ensure this file is checked in to source control! |
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 @@ | ||
fastlane documentation | ||
================ | ||
# Installation | ||
|
||
Make sure you have the latest version of the Xcode command line tools installed: | ||
|
||
``` | ||
xcode-select --install | ||
``` | ||
|
||
Install _fastlane_ using | ||
``` | ||
[sudo] gem install fastlane -NV | ||
``` | ||
or alternatively using `brew install fastlane` | ||
|
||
# Available Actions | ||
## Android | ||
### android deploy_to_stage | ||
``` | ||
fastlane android deploy_to_stage | ||
``` | ||
Deploy current code to stage | ||
### android deploy_to_production | ||
``` | ||
fastlane android deploy_to_production | ||
``` | ||
Deploy current code to production | ||
|
||
---- | ||
|
||
This README.md is auto-generated and will be re-generated every time [fastlane](https://fastlane.tools) is run. | ||
More information about fastlane can be found on [fastlane.tools](https://fastlane.tools). | ||
The documentation of fastlane can be found on [docs.fastlane.tools](https://docs.fastlane.tools). |
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,20 @@ | ||
#!/bin/bash | ||
|
||
create_gradle_properties() { | ||
KEYID=$1 | ||
PASSWORD=$2 | ||
GPG_KEY_CONTENTS=$3 | ||
GPG_LOCATION=~/.gradle/release.gpg | ||
GRADLE_PROPERTIES_LOCATION=~/.gradle/gradle.properties | ||
|
||
mkdir -p ~/.gradle | ||
|
||
rm -f $GPG_LOCATION | ||
rm -f $GRADLE_PROPERTIES_LOCATION | ||
|
||
echo $GPG_KEY_CONTENTS | base64 -d > $GPG_LOCATION | ||
|
||
printf "signing.keyId=$KEYID\nsigning.password=$PASSWORD\nsigning.secretKeyRingFile=$GPG_LOCATION\n" >> $GRADLE_PROPERTIES_LOCATION | ||
} | ||
|
||
create_gradle_properties $ORG_GRADLE_PROJECT_SIGNINGKEYID $ORG_GRADLE_PROJECT_SIGNINGPASSWORD $GPG_KEY_CONTENTS |
Oops, something went wrong.