Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asciidoctor Github Action #329

Merged
merged 1 commit into from
Oct 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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])