Skip to content

Documentation admin #1225

Documentation admin

Documentation admin #1225

name: "Documentation admin"
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
env:
OPP_THIS_REPO: "redhat-openshift-ecosystem/community-operators-pipeline"
jobs:
documentation:
runs-on: ubuntu-latest
container: quay.io/operator_testing/community-operators-mkdocs
steps:
- uses: actions/checkout@v3
with:
repository: redhat-openshift-ecosystem/community-operators-pipeline
ref: documentation-admin
- name: Generate docs
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPR: ${{ github.event.inputs.number-of-prs || 100 }}
run: |
OPP_THIS_REPO_SED="https://github.com/$OPP_THIS_REPO"
OPP_THIS_REPO_SED=${OPP_THIS_REPO_SED//\//\\/}
sed -i 's/repo_url.*/repo_url: '$OPP_THIS_REPO_SED'/g' mkdocs.yml
sed -i 's/ cluster_type:.*/ cluster_type: k8s/g' mkdocs.yml
cat mkdocs.yml
mkdocs build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site