Skip to content

WIP: Jelly JVM docs #33

WIP: Jelly JVM docs

WIP: Jelly JVM docs #33

Workflow file for this run

name: Compile documentation
on:
push:
branches:
- main
workflow_dispatch: {}
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
path: pages
- uses: actions/checkout@v4
with:
repository: Jelly-RDF/jelly-protobuf
path: proto
- id: proto_release
uses: pozetroninc/github-action-get-latest-release@master
with:
owner: Jelly-RDF
repo: jelly-protobuf
excludes: prerelease, draft
- name: Generate Protobuf reference
run: |
docker run --rm -v $(pwd)/proto:/protos -v $(pwd)/pages/docs/specification:/out pseudomuto/protoc-gen-doc --doc_opt=markdown,reference.md
mkdir pages/docs/specification/proto || true
cp proto/*.proto pages/docs/specification/proto
- uses: actions/setup-python@v4
with:
python-version: 3.x
cache: pip
cache-dependency-path: 'pages/requirements.txt'
- name: Install dependencies
working-directory: ./pages
run: pip install -r requirements.txt
- name: Deploy site
working-directory: ./pages
run: |
PROTO_TAG='${{ steps.proto_release.outputs.release }}'
V_MAJOR=`echo ${PROTO_TAG#v} | awk -F '.' '{print $1}'`
V_MINOR=`echo ${PROTO_TAG#v} | awk -F '.' '{print $2}'`
git fetch origin gh-pages --depth=1
git config user.name ci-bot
git config user.email [email protected]
mike deploy --push --update-aliases "${V_MAJOR}.${V_MINOR}" latest