Skip to content

Build Docs

Build Docs #717

Workflow file for this run

on:
push:
branches:
- master
paths:
- '**'
- 'docs/**'
schedule:
- cron: '0 0 * * 4'
workflow_dispatch:
name: Build Docs
jobs:
docs:
runs-on: ubuntu-latest
if: |
github.event_name == 'schedule' ||
github.event_name == 'workflow_dispatch'
steps:
- uses: actions/checkout@main
with:
fetch-depth: 2
- name: docs-build
uses: docker://pcit/vuepress
env:
PCIT_LOCAL_DIR: docs
with:
args: build
dir: docs
- name: docs-sync
uses: docker://pcit/pages
env:
PCIT_EMAIL: [email protected]
PCIT_GIT_TOKEN: ${{ secrets.PCIT_GIT_TOKEN }}
PCIT_GIT_URL: github.com/khs1994-docker/lnmp-k8s
PCIT_KEEP_HISTORY: "true"
PCIT_LOCAL_DIR: docs/.vuepress/dist
PCIT_MESSAGE: Build docs by vuepress, Upload docs by PCIT
PCIT_TARGET_BRANCH: gh-pages
PCIT_USERNAME: khs1994