Skip to content

Commit

Permalink
Merge pull request #12 from noumenalio/develop
Browse files Browse the repository at this point in the history
publish docs and tests.
  • Loading branch information
stewartbryson authored Aug 18, 2022
2 parents 917f806 + b0b2148 commit b463d04
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 17 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/gradle-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,10 @@ jobs:
- name: Gradle build and test
uses: gradle/gradle-build-action@v2
with:
arguments: build functionalTest buildDashboard
arguments: build validatePlugin functionalTest buildDashboard

- name: Upload build reports
uses: actions/upload-artifact@v3
- name: Publish tests
uses: mikepenz/action-junit-report@v3
if: always()
with:
name: build-reports
path: |
build/reports/buildDashboard/
plugin/build/reports/
report_paths: '**/build/test-results/**/TEST-*.xml'
12 changes: 5 additions & 7 deletions .github/workflows/gradle-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,10 @@ jobs:
- name: Gradle publish
uses: gradle/gradle-build-action@v2
with:
arguments: build publish groovydoc githubRelease buildDashboard -PgithubToken=${{secrets.GITHUB_TOKEN}}
arguments: build publish githubRelease publishDocs buildDashboard -PgithubToken=${{secrets.GITHUB_TOKEN}}

- name: Upload build reports
uses: actions/upload-artifact@v3
- name: Publish tests
uses: mikepenz/action-junit-report@v3
if: always()
with:
name: build-reports
path: |
build/reports/buildDashboard/
plugin/build/reports/
report_paths: '**/build/test-results/**/TEST-*.xml'
3 changes: 0 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,3 @@ githubRelease {
generateReleaseNotes true
//dryRun true
}



24 changes: 24 additions & 0 deletions plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ plugins {
id 'maven-publish'
id 'com.adarshr.test-logger' version '3.2.0'
id "com.redpillanalytics.gradle-properties" version "1.0.7"
id 'com.fuseanalytics.gradle.s3' version '1.2.0'
}

dependencies {
Expand Down Expand Up @@ -83,3 +84,26 @@ publishing {
}
}
}

s3 {
bucket = 'docs.noumenal.io'
}

tasks.register("publishLatestDocs", com.fuseanalytics.gradle.s3.S3Upload) {
description = "Publish the latest docs to S3."
keyPrefix = "${rootProject.name}/latest"
sourceDir = tasks.groovydoc.destinationDir
dependsOn groovydoc
}

tasks.register("publishVersionDocs", com.fuseanalytics.gradle.s3.S3Upload) {
description = "Publish the version docs to S3."
keyPrefix = "${rootProject.name}/$version"
sourceDir = tasks.groovydoc.destinationDir
dependsOn groovydoc
}

tasks.register("publishDocs") {
dependsOn tasks.publishLatestDocs, tasks.publishVersionDocs
mustRunAfter tasks.publish
}

0 comments on commit b463d04

Please sign in to comment.