Skip to content

update entire repository; make it API document repository #4

update entire repository; make it API document repository

update entire repository; make it API document repository #4

Workflow file for this run

name: Build document
on: [ push, create ]
jobs:
make-document:
name: Compile document
runs-on: ubuntu-latest
container:
image: k4zuki/pandocker-alpine:2.19
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup safe directory for git
run: |
repo=${GITHUB_REPOSITORY#${GITHUB_REPOSITORY_OWNER}/}
git config --global --add safe.directory /__w/${repo}/${repo}
- name: Update dependencies
run: |
pip3 install pandocker-lua-filters
pip3 install -U docx-coreprop-writer
pip3 install git+https://github.com/k4zuki/[email protected]
- name: Set env
run: |
- name: Prepare QR code for this build (at a tag)
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
run: |
pip3 install qrcode
make initdir html
RELEASE_VERSION=${GITHUB_REF#refs/*/}
DOWNLOAD_URL_BASE=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/releases/download
TARGET=`ls Out/*.html`
TARGET=${TARGET#Out/}
qr ${DOWNLOAD_URL_BASE}/${RELEASE_VERSION}/${TARGET//.html/}.pdf > images/QRcode.png
- name: Build document
run: |
make initdir docx
- name: Upload artifact files (at a push)
uses: actions/upload-artifact@v3
with:
path: Out