upload aar to action artifcats #5
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: Pull Request Merge Workflow | |
on: | |
push: | |
branches: | |
- 'release/next' | |
env: | |
CI: true | |
LANG: en_US.UTF-8 | |
API_LEVEL: 29 | |
jobs: | |
deploy: | |
name: 'Create Release Pull Request' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup | |
uses: ./.github/actions/setup | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
gpg_signing_key: ${{ secrets.GPG_SIGNING_KEY }} | |
- name: Build Libraries | |
shell: bash | |
run: ./gradlew :app:build --no-daemon | |
- name: Set Alpha Version | |
id: incremented-alpha-version | |
uses: ./.github/actions/update-gradle-version | |
with: | |
type: alpha | |
- name: prepare release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }} | |
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} | |
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | |
GPG_PRIVATE_KEY: ${{ secrets.GPG_SIGNING_KEY }} | |
run: ./gradlew :android:signMavenJavaPublication | |
- name: Upload build artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: build-artifacts | |
path: android/build/publications/mavenJava | |
- name: Upload build outputs artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: output-artifacts | |
path: android/build/outputs/aar |