Skip to content

Commit

Permalink
Publish snapshot on every push to master
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulsom committed Mar 8, 2020
1 parent 209404d commit 2d33ef2
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ indent_style=space
indent_size=4
continuation_indent_size=8

[*.yml]
indent_size=2
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
with:
java-version: 1.8
- name: Build with Gradle
run: ./gradlew build
run: ./gradlew build asciidoctor
10 changes: 9 additions & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,12 @@ jobs:
with:
java-version: 1.8
- name: Build with Gradle
run: ./gradlew build
run: |
mkdir -p ~/.gradle
echo "nexusUsername=$NEXUS_USER" >> ~/.gradle/gradle.properties
echo "nexusPassword=$NEXUS_PASSWORD" >> ~/.gradle/gradle.properties
./gradlew build snapshot --stacktrace
env:
NEXUS_USER: rahulsom
NEXUS_PASSWORD: ${{secrets.NEXUS_PASSWORD}}
GRGIT_USER: ${{secrets.GH_TOKEN}}
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ subprojects {
gradle.releasable.each {
tasks.release.dependsOn "grooves-${it}:uploadArchives"
}
tasks.release.dependsOn 'grooves-docs:gitPublishPush'
tasks.getByName('release').dependsOn 'grooves-docs:gitPublishPush'

project.afterEvaluate {
gradle.releasable.each {
Expand Down
2 changes: 1 addition & 1 deletion grooves-docs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ buildscript {
}
dependencies {
classpath "org.ajoberstar:gradle-git-publish:2.1.3"
classpath "org.asciidoctor:asciidoctor-gradle-plugin:1.6.1"
classpath "org.asciidoctor:asciidoctor-gradle-plugin:1.5.3"
}
}

Expand Down

0 comments on commit 2d33ef2

Please sign in to comment.