Skip to content

Merge pull request #397 from 2pk03/main #185

Merge pull request #397 from 2pk03/main

Merge pull request #397 from 2pk03/main #185

Workflow file for this run

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Generate Documentation workflow
on:
push:
branches: [ main ]
paths:
- 'wayang-docs/**'
pull_request:
branches: [ main ]
types: [closed]
paths:
- 'wayang-docs/**'
permissions:
issues: write
jobs:
build:
name: Create documentation
runs-on: ubuntu-latest
env:
## Environment variable
API_KEY: $HOME/gems
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v2
with:
java-version: 8
distribution: 'adopt'
- name: Install ruby
run: |
sudo apt install -y ruby-full build-essential zlib1g-dev
export GEM_HOME="$HOME/gems"' >> $GITHUB_ENV
export PATH="$HOME/gems/bin:$PATH"' >> $GITHUB_ENV
- name: Install jekyll
run: |
sudo gem install jekyll bundler
- uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven
- name: Generate the documentation
run: |
./mvnw clean gem:exec@bundle-install gem:exec@generate-documentation gem:exec@generate-documentation-as-latest site -pl wayang-docs -Pweb-documentation