Files
truecharts/.github/workflows/docs.deploy.yaml
Kjeld Schouten-Lebbing d83d9f2e18 Housekeeping workflow rework (#771)
* remove the chart version from readme template

* only (re)generate docs once a day or on demand, not on every change

* simplify workflow a bit

* streamline docs generation some more

* integrate helm-docs generation into to workflow

* Turn it into a single daily housekeeping job

* always include index.yaml when deploying docs...
2021-08-16 15:27:42 +02:00

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