Skip to content

Commit

Permalink
Publish Android binaries as Maven files repository on GitHub Pages (#54)
Browse files Browse the repository at this point in the history
- remove JitPack integration

Co-authored-by: alexlapa <[email protected]>
Co-authored-by: Kai Ren <[email protected]>
  • Loading branch information
3 people authored Sep 22, 2023
1 parent 497aa26 commit 0a3a09b
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 22 deletions.
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.

0 comments on commit 0a3a09b

Please sign in to comment.