mirror of
https://github.com/containrrr/watchtower.git
synced 2025-09-22 05:40:50 +02:00
33 lines
717 B
YAML
33 lines
717 B
YAML
name: Publish Docs
|
|
|
|
on:
|
|
workflow_dispatch: { }
|
|
workflow_run:
|
|
workflows: [ "Release (Production)" ]
|
|
branches: [ main ]
|
|
types:
|
|
- completed
|
|
|
|
jobs:
|
|
publish-docs:
|
|
name: Publish Docs
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Install mkdocs
|
|
run: |
|
|
pip install \
|
|
mkdocs \
|
|
mkdocs-material \
|
|
md-toc
|
|
- name: Generate docs
|
|
run: mkdocs gh-deploy --strict
|
|
# - name: Publish docs
|
|
# uses: peaceiris/actions-gh-pages@v3
|
|
# with:
|
|
# github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
# publish_dir: ./site
|
|
|