-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
1,518 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,44 @@ | ||
name: Deploy to Nexus | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
workflow_dispatch: | ||
jobs: | ||
generateReadme: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: master | ||
fetch-depth: 0 | ||
- shell: bash | ||
run: | | ||
git config user.email [email protected] | ||
git config user.name "Github Action" | ||
VERSION=`git describe --tags --abbrev=0` | ||
VERSION=`./moustache/split.sh $VERSION` | ||
rm -f ./README.md | ||
VERSION=$VERSION ./moustache/mo ./moustache/README.mo > ./README.md | ||
git add . | ||
git commit -m "Update readme to version=$VERSION" | ||
git push | ||
deployAarsToNexus: | ||
needs: generateReadme | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: master | ||
fetch-depth: 0 | ||
- shell: bash | ||
env: | ||
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }} | ||
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }} | ||
OSSR_USERNAME: ${{ secrets.OSSR_USERNAME }} | ||
OSSR_PASSWORD: ${{ secrets.OSSR_PASSWORD }} | ||
SONATYPE_STATING_PROFILE_ID: ${{ secrets.SONATYPE_STATING_PROFILE_ID }} | ||
run: | | ||
echo "${{ secrets.GPG_FILE }}" > sec.gpg.asc | ||
gpg -d --passphrase "${{ secrets.GPG_FILE_PSWD }}" --batch sec.gpg.asc > sec.gpg | ||
bundle exec fastlane deployNexus |
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 @@ | ||
source "https://rubygems.org" | ||
|
||
gem "fastlane" |
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,31 @@ | ||
# This file contains the fastlane.tools configuration | ||
# You can find the documentation at https://docs.fastlane.tools | ||
# | ||
# For a list of all available actions, check out | ||
# | ||
# https://docs.fastlane.tools/actions | ||
# | ||
# For a list of all available plugins, check out | ||
# | ||
# https://docs.fastlane.tools/plugins/available-plugins | ||
# | ||
|
||
# Uncomment the line if you want fastlane to automatically update itself | ||
# update_fastlane | ||
|
||
default_platform(:android) | ||
|
||
platform :android do | ||
|
||
desc "Runs all the tests" | ||
lane :test do | ||
gradle(task: "test") | ||
end | ||
|
||
desc "Deploy libraries to Nexus." | ||
lane :deployNexus do | ||
gradle(task: "clean assembleRelease") | ||
gradle(task: "publishReleasePublicationToSonatypeRepository") | ||
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,35 @@ | ||
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 test | ||
``` | ||
fastlane android test | ||
``` | ||
Runs all the tests | ||
### android deploy | ||
### android deployNexus | ||
``` | ||
fastlane android deployNexus | ||
``` | ||
Deploy libraries to Nexus. | ||
|
||
---- | ||
|
||
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,23 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<testsuites> | ||
<testsuite name="fastlane.lanes"> | ||
|
||
|
||
|
||
|
||
<testcase classname="fastlane.lanes" name="0: default_platform" time="0.000146394"> | ||
|
||
</testcase> | ||
|
||
|
||
<testcase classname="fastlane.lanes" name="1: clean bundleRelease" time="14.505891043"> | ||
|
||
</testcase> | ||
|
||
|
||
<testcase classname="fastlane.lanes" name="2: upload_to_play_store" time="11.349806279"> | ||
|
||
</testcase> | ||
|
||
</testsuite> | ||
</testsuites> |
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,27 @@ | ||
ext.getVersionCodeFromTags = { -> | ||
try { | ||
def code = new ByteArrayOutputStream() | ||
exec { | ||
commandLine 'git', 'tag', '--list' | ||
standardOutput = code | ||
} | ||
return 14 + code.toString().split("\n").size() | ||
} | ||
catch (ignored) { | ||
return -1 | ||
} | ||
} | ||
|
||
ext.getVersionNameFromTags = { -> | ||
try { | ||
def stdout = new ByteArrayOutputStream() | ||
exec { | ||
commandLine 'git', 'describe', '--tags', '--abbrev=0' | ||
standardOutput = stdout | ||
} | ||
return stdout.toString().trim().split("%")[0] | ||
} | ||
catch (ignored) { | ||
return null | ||
} | ||
} |
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
Oops, something went wrong.