TrueChartsClone/.github/workflows/docs.deploy.yaml

32 lines
735 B
YAML

name: "Docs: Deploy"
on:
workflow_dispatch:
push:
branches:
- master
paths:
- 'docs/**'
- '.github/workflows/docs.deploy.yaml'
- 'index.yaml'
- 'mkdocs.yml'
jobs:
build:
name: Deploy Wiki
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
token: ${{ secrets.BOT_TOKEN }}
- name: Copy index.yaml to website
run: |
yes | cp -rf index.yaml docs/index.yaml || echo "chart-index copy failed, continuing..."
- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
env:
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
REQUIREMENTS: docs/requirements.txt