Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Publish build artifacts with release #70

Merged
merged 2 commits into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading