Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #86 from iden3/feature/publish-to-maeven
Browse files Browse the repository at this point in the history
Publish gomobile android library as a package
  • Loading branch information
ed255 authored Apr 1, 2020
2 parents a74f2f1 + 2d78730 commit 6bd3886
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/gomobile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: Gomobile
on:
push:
branches: [ master ]
# pull_request:
# branches: [ master ]

jobs:
build:
Expand All @@ -29,9 +27,6 @@ jobs:
mkdir /tmp/build && \
gomobile bind --target android -o /tmp/build/iden3mobile.aar && \
mv /tmp/build /builds/out'
# mkdir -p /tmp/builds/out
# touch /tmp/builds/out/iden3mobile.aar
# touch /tmp/builds/out/iden3mobile-sources.jar
cd /tmp/builds/out
echo "::set-output name=sha256_aar::$(sha256sum iden3mobile.aar | cut -d' ' -f1)"
echo "::set-output name=sha256_jar::$(sha256sum iden3mobile-sources.jar | cut -d' ' -f1)"
Expand Down Expand Up @@ -100,3 +95,12 @@ jobs:
asset_path: /tmp/builds/out/iden3mobile-sources.jar
asset_name: iden3mobile-sources.jar
asset_content_type: application/zip
- uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Publish Android artifacts to GitHub Packages
run: |
cd /tmp/builds/out
mvn deploy:deploy-file -Dfile=iden3mobile.aar -Durl=https://maven.pkg.github.com/iden3/iden3-mobile -DrepositoryId=github -DrepositoryName="GitHub Pages" -Dfiles=iden3mobile-sources.jar -Dtypes=jar -Dclassifiers=sources -DgroupId=com.iden3 -DartifactId=iden3mobile -Dversion="${{ steps.next_version.outputs.version }}" -Dpackaging=aar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6bd3886

Please sign in to comment.