Skip to content

Commit

Permalink
Merge pull request #329 from msgilligan/msgilligan-asciidoctor
Browse files Browse the repository at this point in the history
Asciidoctor Github Action
  • Loading branch information
achamely authored Oct 29, 2019
2 parents 7494692 + 5c3bd02 commit 6154fa1
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Documentation Build

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
name: Asciidoctor Gradle
steps:
- uses: actions/checkout@v1
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 11
- name: Build with Gradle
run: gradle renderOmniSpecification --info --stacktrace
- name: Upload build directory as artifact
uses: actions/upload-artifact@master
with:
name: omni-spec-documentation-archive
path: build/doc
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.gradle/
build/
.idea/

32 changes: 32 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
buildscript {
repositories {
jcenter()
}
}

plugins {
id 'org.asciidoctor.jvm.convert' version '2.3.0'
id 'org.asciidoctor.jvm.pdf' version '2.3.0'
}

repositories {
jcenter()
}

asciidoctor {
sourceDir file("$projectDir")
sources {
include 'README.adoc'
}
outputDir file('build/doc')
}

asciidoctorPdf {
sourceDir file("$projectDir")
sources {
include 'README.adoc'
}
outputDir file('build/doc')
}

task renderOmniSpecification(dependsOn: [asciidoctor, asciidoctorPdf])

0 comments on commit 6154fa1

Please sign in to comment.