Skip to content

Commit

Permalink
GitHub workflow implementation (#5)
Browse files Browse the repository at this point in the history
* instruct pypi for venv location
* improve(github action) plantuml to path
* improve(sphinx contrib) directly specified plantuml path
  • Loading branch information
Voronenko committed Jun 7, 2020
1 parent 9aab4e4 commit 627f068
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,17 @@ jobs:
release:
name: Build
runs-on: ubuntu-latest
env:
PIPENV_VENV_IN_PROJECT: true
steps:

- uses: actions/checkout@v1
- name: Setup java for plantuml
uses: actions/setup-java@v1
with:
java-version: 8
java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk
architecture: x64 # (x64 or x86) - defaults to x64
- name: Set up Python 3.6
uses: actions/setup-python@v1
with:
Expand All @@ -20,10 +28,12 @@ jobs:
sudo apt install pandoc graphviz curl
mkdir -p /opt/plantuml/ && curl -L https://sourceforge.net/projects/plantuml/files/plantuml.jar/download > /opt/plantuml/plantuml.jar
python -m pip install --upgrade pip
echo "::add-path::./docker"
- name: Install pipenv
run: |
pip install pipenv
pipenv install --deploy --dev
- name: Build sphinx documentation
run: |
plantuml -version
pipenv run make docs
Empty file modified docker/plantuml
100644 → 100755
Empty file.
2 changes: 2 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ def _warn_node(self, msg, node, **kwargs):
# Output file base name for HTML help builder.
htmlhelp_basename = 'project-docsdoc'

plantuml = 'java -jar /opt/plantuml/plantuml.jar'


# -- Options for LaTeX output -------------------------------------------------

Expand Down

0 comments on commit 627f068

Please sign in to comment.