Skip to content

Commit

Permalink
Maven release workflow updates (#179)
Browse files Browse the repository at this point in the history
* Add Core dependency check to release workflow

* Fix descriptions and update file path order

* Fix descriptions and update formatting

* Add javadoc support and upgrade all workflow versions to 3.1.0
  • Loading branch information
timkimadobe authored Dec 4, 2024
1 parent 21736c1 commit f392e12
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ on:
jobs:
build-and-test:
name: "CI"
uses: adobe/aepsdk-commons/.github/workflows/android-build-and-test.yml@gha-android-3.0.0
uses: adobe/aepsdk-commons/.github/workflows/android-build-and-test.yml@gha-android-3.1.0
with:
android-api-levels: '[29]'
run-test-unit: true
run-test-functional: true
run-test-integration: true
run-build-app: true
enable-codecov: true
javadoc-build-path: code/edge/build/dokka/javadoc
secrets: inherit
12 changes: 9 additions & 3 deletions .github/workflows/maven-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#

name: Publish Release

on:
workflow_dispatch:
inputs:
Expand All @@ -25,19 +26,24 @@ on:
required: true
default: true

core-dependency:
description: 'The Core dependency version in gradle.properties to be validated (ex: 1.2.3).'
type: string
required: true

edge-identity-dependency:
description: 'The AEPEdgeIdentity dependency version in gradle.properties to be validated (ex: 1.2.3).'
description: 'The EdgeIdentity dependency version in gradle.properties to be validated (ex: 1.2.3).'
type: string
required: true

jobs:
publish:
permissions:
contents: write
uses: adobe/aepsdk-commons/.github/workflows/android-maven-release.yml@gha-android-3.0.0
uses: adobe/aepsdk-commons/.github/workflows/android-maven-release.yml@gha-android-3.1.0
with:
tag: ${{ github.event.inputs.tag }}
create-github-release: ${{ github.event.inputs.create-github-release == 'true' }}
version-validation-paths: code/gradle.properties, code/edge/src/main/java/com/adobe/marketing/mobile/EdgeConstants.java
version-validation-dependencies: EdgeIdentity ${{ github.event.inputs.edge-identity-dependency }}
version-validation-dependencies: Core ${{ github.event.inputs.core-dependency }}, EdgeIdentity ${{ github.event.inputs.edge-identity-dependency }}
secrets: inherit
3 changes: 2 additions & 1 deletion .github/workflows/maven-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@
#

name: Publish Snapshot

on:
workflow_dispatch:

jobs:
publish:
permissions:
contents: write
uses: adobe/aepsdk-commons/.github/workflows/android-maven-snapshot.yml@gha-android-3.0.0
uses: adobe/aepsdk-commons/.github/workflows/android-maven-snapshot.yml@gha-android-3.1.0
secrets: inherit
12 changes: 6 additions & 6 deletions .github/workflows/update-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,31 +27,31 @@ on:

core-dependency:
description: |
If a version is provided, update AEPCore dependency in gradle.properties (ex: 1.2.3).
If a version is provided, update Core dependency in gradle.properties (ex: 1.2.3).
This is a published dependency in the pom.xml file.
type: string
required: false
default: ''

edge-identity-dependency:
description: |
If a version is provided, update AEPEdgeIdentity dependency in gradle.properties (ex: 1.2.3).
If a version is provided, update EdgeIdentity dependency in gradle.properties (ex: 1.2.3).
This is a published dependency in the pom.xml file.
type: string
required: false
default: ''

edge-consent-dependency:
description: |
If a version is provided, update AEPEdgeConsent dependency in gradle.properties (ex: 1.2.3).
If a version is provided, update EdgeConsent dependency in gradle.properties (ex: 1.2.3).
This is a testing-only dependency.
type: string
required: false
default: ''

testutils-dependency:
description: |
If a version is provided, update AEPTestUtils dependency in gradle.properties (ex: 1.2.3).
If a version is provided, update TestUtils dependency in gradle.properties (ex: 1.2.3).
This is a testing-only dependency.
type: string
required: false
Expand All @@ -62,10 +62,10 @@ jobs:
permissions:
contents: write
pull-requests: write
uses: adobe/aepsdk-commons/.github/workflows/versions.yml@gha-android-3.0.0
uses: adobe/aepsdk-commons/.github/workflows/versions.yml@gha-android-3.1.0
with:
version: ${{ github.event.inputs.version }}
branch: ${{ github.event.inputs.branch }}
dependencies: Core ${{ github.event.inputs.core-dependency }}, EdgeIdentity ${{ github.event.inputs.edge-identity-dependency }}, EdgeConsent ${{ github.event.inputs.edge-consent-dependency }}, TestUtils ${{ github.event.inputs.testutils-dependency }}
paths: code/edge/src/main/java/com/adobe/marketing/mobile/EdgeConstants.java, code/gradle.properties
paths: code/gradle.properties, code/edge/src/main/java/com/adobe/marketing/mobile/EdgeConstants.java
update: true

0 comments on commit f392e12

Please sign in to comment.