Skip to content

Commit

Permalink
Upload to S3 using aws cli (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinayagarwal authored Oct 6, 2022
1 parent 2c02820 commit 0780ae2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
if: steps.deploy.outputs.exit_code == 0
run: |
TAG=${GITHUB_REF/refs\/tags\//}
./gradlew uploadJavadocToS3
aws s3 cp --recursive build/docs/javadoc/ $AWS_S3_BUCKET_DOCS/attach/javadoc/$TAG/ --acl public-read --region us-east-1
# Update /latest with release version
aws s3 sync $AWS_S3_BUCKET_DOCS/attach/javadoc/$TAG/ $AWS_S3_BUCKET_DOCS/attach/javadoc/latest/ --acl public-read --region us-east-1
env:
Expand Down
9 changes: 0 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
plugins {
id 'java-library'
id 'jp.classmethod.aws.s3' version '0.41'
id 'io.codearte.nexus-staging' version '0.21.1'
id "org.openjfx.javafxplugin" version "0.0.10" apply false
id 'de.marcphilipp.nexus-publish' version '0.4.0' apply false
Expand Down Expand Up @@ -68,14 +67,6 @@ javadoc {
dependsOn copyModuleSources
}

task uploadJavadocToS3(type: jp.classmethod.aws.gradle.s3.SyncTask) {
source file("$buildDir/docs/javadoc/")
bucketName 'docs.gluonhq.com'
prefix "attach/javadoc/$project.version/"
acl 'PublicRead'
dependsOn javadoc
}

// Do not publish Gradle modules
tasks.withType(GenerateModuleMetadata) {
enabled = false
Expand Down

0 comments on commit 0780ae2

Please sign in to comment.