Skip to content

Pass key to build

Pass key to build #579

Workflow file for this run

on:
push:
pull_request:
name: "android"
jobs:
build:
name: Building Android
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Build Android
uses: ./.github/actions/android
with:
sign-publication: '1'
gpg-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-password: ${{ secrets.GPG_PASSWORD }}
test_release:
needs: [build]
runs-on: ubuntu-latest
name: Releasing Android for test
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)
steps:
- uses: actions/download-artifact@v4
name: android-library
- name: Publish to Maven Central
run: |
curl --request POST \
--header 'Authorization: Bearer ${{ secrets.CENTRAL_AUTH }}' \
--form [email protected] \
https://central.sonatype.com/api/v1/publisher/upload