-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Automated Android branch builds
- Loading branch information
1 parent
71a58d0
commit ba8de84
Showing
3 changed files
with
53 additions
and
5 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,46 @@ | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
# types: | ||
# - closed | ||
|
||
name: Update Android Artifacts | ||
|
||
permissions: | ||
contents: write # read | ||
|
||
jobs: | ||
update-android-branch: | ||
# if: github.event.pull_request.merged == true | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: "17" | ||
distribution: "temurin" | ||
|
||
- name: Package Android AAR | ||
run: | | ||
echo Running artifact update on branch ${{ github.ref_name }} | ||
# git checkout -b main-with-maven | ||
git status | ||
git remote -vv | ||
# git fetch --all | ||
# git reset --hard origin/main | ||
git status | ||
git config --global user.name "Android Builder" | ||
git config --global user.email "[email protected]" | ||
./ci/package_android_release.sh | ||
git show-ref | ||
git remote -vv | ||
git fetch --all | ||
git add --force android-release-support/* | ||
git commit -am "[Automated] Test packaging" | ||
git status | ||
git push -f origin HEAD:main-with-maven |
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