Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android repository #54

Merged
merged 22 commits into from
Sep 22, 2023
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,47 @@ jobs:
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}

publish-android:
name: publish (Android)
if: ${{ startsWith(github.ref, 'refs/tags/') }}
needs: ["release-github"]
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v3
with:
ref: gh-pages

- uses: actions/download-artifact@v3
with:
name: build
path: package

- run: cd package && tar xf libwebrtc-android.tar.gz

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'

- run: |
mvn install:install-file \
-DgroupId=com.github.instrumentisto \
-DartifactId=libwebrtc-bin \
-Dversion={{ steps.release.outputs.version }} \
-Dfile=./package/aar/libwebrtc.aar \
-Dpackaging=aar \
-DgeneratePom=true \
-DlocalRepositoryPath=. \
-DcreateChecksum=true

- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Publish android `libwebrtc-${{ steps.release.outputs.version }}`.
branch: gh-pages
create_branch: false

release-github:
name: release (GitHub)
if: ${{ startsWith(github.ref, 'refs/tags/') }}
Expand Down
2 changes: 0 additions & 2 deletions jitpack.yml

This file was deleted.

19 changes: 0 additions & 19 deletions publishAar.sh

This file was deleted.