Skip to content

Commit

Permalink
fix: Publish build artifacts with release (#70)
Browse files Browse the repository at this point in the history
* fix: Publish build artifacts with release

* assemble before publish
  • Loading branch information
felipecsl authored Jun 20, 2024
1 parent eb80dd3 commit 376dc0e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
echo "GRADLE_USER_HOME=${HOME}/.gradle" >> $GITHUB_ENV
- name: Publish Release artifact
run: ./gradlew publish -Prelease --no-daemon
run: ./gradlew eppo:assemble eppo:publish -Prelease --no-daemon
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
2 changes: 1 addition & 1 deletion .github/workflows/publish-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}

- name: Publish Snapshot artifact
run: ./gradlew publish -Psnapshot --no-daemon
run: ./gradlew eppo:assemble eppo:publish -Psnapshot --no-daemon
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
9 changes: 8 additions & 1 deletion eppo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ android {
excludes += "META-INF/**"
}
}

publishing {
singleVariant('release') {
withSourcesJar()
withJavadocJar()
}
}
}

ext {}
Expand Down Expand Up @@ -111,7 +118,7 @@ publishing {
version = project.properties.get("version")

afterEvaluate {
from components.findByName('release')
from components.release
}

pom {
Expand Down

0 comments on commit 376dc0e

Please sign in to comment.