Skip to content

Merge pull request #4 from asztrikx/fix-chapter6-query_concat #29

Merge pull request #4 from asztrikx/fix-chapter6-query_concat

Merge pull request #4 from asztrikx/fix-chapter6-query_concat #29

Workflow file for this run

name: Build docs
on:
push:
branches:
- master
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
# HOTFIX for https://github.com/actions/runner/issues/2033
- name: Fix git safe.directory in container
run: mkdir -p /home/runner/work/_temp/_github_home && printf "[safe]\n\tdirectory = /github/workspace" > /home/runner/work/_temp/_github_home/.gitconfig
- name: Build docs
uses: ./
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
IsRevisionDatePluginEnabled: "true"
IsAuthorsPluginEnabled: "true"
IsPdfExportEnabled: 1
with:
entrypoint: mkdocs
args: build --config-file=mkdocs.yml
- uses: actions/upload-artifact@v4
with:
name: PDF
path: ./site/pdf/*.pdf
- name: Deploy docs to gh-pages branch
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site