Skip to content

Commit

Permalink
Add library publishing to CI build
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <[email protected]>
  • Loading branch information
pditommaso committed Aug 6, 2023
1 parent 6c26257 commit 4fb5988
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ jobs:
if: "contains(github.event.head_commit.message, '[release]')"
run: |
bash tag-and-push.sh
./gradlew wave-api:publishMavenPublicationToSeqeraRepositoryRepository
./gradlew wave-utils:publishMavenPublicationToSeqeraRepositoryRepository
env:
GRADLE_OPTS: '-Dorg.gradle.daemon=false'
AWS_ACCESS_KEY_ID: ${{secrets.TOWER_CI_AWS_ACCESS}}
Expand All @@ -84,6 +86,7 @@ jobs:
DOCKER_PAT: ${{ secrets.DOCKER_PAT }}
QUAY_PAT: ${{ secrets.QUAY_PAT }}
GITHUB_TOKEN: ${{ secrets.GH_SEQERA_TOKEN }}
PUBLISH_REPO_URL: "s3://maven.seqera.io/releases"

- name: Deploy to staging cluster
if: "contains(github.event.head_commit.message, '[deploy staging]')"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ publishing {
repositories {
maven {
name = "SeqeraRepository"
url = uri("s3://maven.seqera.io/snapshots")
url = project.findProperty('publish_repo_url') ?: System.getenv('PUBLISH_REPO_URL') ?: "s3://maven.seqera.io/snapshots"
credentials(AwsCredentials) {
accessKey = project.findProperty('aws_access_key_id') ?: System.getenv('AWS_ACCESS_KEY_ID')
secretKey = project.findProperty('aws_secret_access_key') ?: System.getenv('AWS_SECRET_ACCESS_KEY')
Expand Down
3 changes: 2 additions & 1 deletion wave-api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ plugins {
id 'io.seqera.wave.java-library-conventions'
}

version '0.1.0'
group = 'io.seqera'
version = rootProject.version
1 change: 1 addition & 0 deletions wave-mail/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ dependencies {
}

group = 'io.seqera'
version = rootProject.version
2 changes: 1 addition & 1 deletion wave-utils/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ dependencies {
}

group = 'io.seqera'
version = '0.1.0'
version = rootProject.version

0 comments on commit 4fb5988

Please sign in to comment.