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
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,54 @@ jobs:
# Releasing #
#############

publish-android:
name: publish (Android)
if: ${{ startsWith(github.ref, 'refs/tags/') }}
needs: ["release-github"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: gh-pages
- uses: actions/setup-java@v3
with:
java-version: "17"
distribution: temurin

- name: Parse release version
id: release
run: echo "version=${GITHUB_REF#refs/tags/}"
>> $GITHUB_OUTPUT

- uses: actions/download-artifact@v3
with:
name: build
path: package/
- run: tar -xzvf libwebrtc-android.tar.gz
working-directory: package/

- name: Build Maven files
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=./android/
-DcreateChecksum=true

- name: Publish to GitHub Pages
run: |
set -ex

git config --local user.email 'actions+${{ github.run_number }}@github.com'
git config --local user.name 'GitHub Actions'

git add -v android/
git commit -m 'Release ${{ steps.release.outputs.version }} version of `libwebrtc-android`'
git push origin gh-pages

publish-cocoapods:
name: publish (CocoaPods)
if: ${{ startsWith(github.ref, 'refs/tags/') }}
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
======================

[![CocoaPods](https://img.shields.io/cocoapods/v/instrumentisto-libwebrtc-bin "CocoaPods")](https://cocoapods.org/pods/instrumentisto-libwebrtc-bin)
[![JitPack](https://jitpack.io/v/instrumentisto/libwebrtc-bin.svg "JitPack")](https://jitpack.io/#instrumentisto/libwebrtc-bin)
[![CI](https://github.com/instrumentisto/libwebrtc-bin/workflows/CI/badge.svg?branch=main "CI")](https://github.com/instrumentisto/libwebrtc-bin/actions?query=workflow%3ACI+branch%3Amain)

Build scripts for statically linked [`libwebrtc`] binaries, used by [Medea Flutter-WebRTC].
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.