Move off macos-12 for builds #49
Workflow file for this run
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
name: Build Android release | |
# This is triggered by merging a PR from a branch named release-*. This workflow builds and publishes the Android release artifacts | |
# to Maven Central. | |
on: | |
pull_request: | |
types: | |
- closed | |
jobs: | |
android: | |
if: github.event.pull_request.merged && startsWith(github.event.pull_request.head.ref, 'release-') | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: IronCoreLabs/rust-toolchain@v1 | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: 8 | |
distribution: adopt | |
- run: sudo apt-get install -y clang | |
- name: Run build script | |
run: ./build-aar.sh | |
working-directory: android | |
- name: Decrypt PGP key | |
uses: IronCoreLabs/ironhide-actions/decrypt@v3 | |
with: | |
keys: ${{ secrets.IRONHIDE_KEYS }} | |
input: .github/signing-key.asc.iron .github/auth.properties.iron | |
- name: Import PGP key | |
run: gpg --batch --import .github/signing-key.asc | |
- name: Export PGP signing key | |
run: gpg --export-secret-keys > /tmp/signing-key.gpg | |
- name: Upload AAR to Maven Central | |
run: | | |
./gradlew uploadArchives | |
./gradlew closeAndReleaseRepository | |
working-directory: android |