BOM Release #30
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: BOM Release | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- '*android/aepsdk-bom/sdk-bom/bom.properties' | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Java | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Cache Gradle packages | |
uses: actions/cache@v2 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | |
restore-keys: ${{ runner.os }}-gradle | |
- name: Import GPG key | |
env: | |
GPG_SECRET_KEYS: ${{ secrets.GPG_SECRET_KEYS }} | |
GPG_OWNERTRUST: ${{ secrets.GPG_OWNERTRUST }} | |
run: | | |
echo $GPG_SECRET_KEYS | base64 --decode | gpg --import --no-tty --batch --yes | |
echo $GPG_OWNERTRUST | base64 --decode | gpg --import-ownertrust --no-tty --batch --yes | |
- name: Publish sdk-bom to maven central | |
run: make -C android/aepsdk-bom bom-publish-main | |
env: | |
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | |
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }} | |
- name: Read bomVersion from gradle.properties | |
id: read_property | |
uses: christian-draeger/read-properties@1.1.1 | |
with: | |
path: './android/aepsdk-bom/gradle.properties' | |
properties: 'bomVersion' | |
- name: BOM version | |
run: echo ${{ steps.read_property.outputs.bomVersion }} | |
- name: Create GH Release | |
id: create_release | |
uses: release-drafter/release-drafter@v5 | |
with: | |
name: bom-${{ steps.read_property.outputs.bomVersion }} | |
tag: bom-${{ steps.read_property.outputs.bomVersion }} | |
version: bom-${{ steps.read_property.outputs.bomVersion }} | |
publish: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Update Release page | |
run: | | |
gh release edit bom-${{ steps.read_property.outputs.bomVersion }} --repo adobe/aepsdk-commons --notes-file ./android/aepsdk-bom/sdk-bom/bom-release-notes.md | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |