mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2024-12-26 08:28:08 +00:00
53752487b6
* Add git config user * Create mkdocs-deploy.yaml * Delete mkdocs-latest.yaml * Delete mkdocs-dev.yaml
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
# This is a manually triggered workflow to build and publish the MkDocs from the
|
|
# main branch to GitHub pages at https://aquasecurity.github.io/kube-bench.
|
|
name: Deploy documentation
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
version:
|
|
description: Version to be deployed
|
|
required: true
|
|
|
|
jobs:
|
|
deploy:
|
|
name: Deploy documentation
|
|
runs-on: ubuntu-18.04
|
|
steps:
|
|
- name: Checkout main
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
persist-credentials: true
|
|
- uses: actions/setup-python@v2
|
|
with:
|
|
python-version: 3.x
|
|
- run: |
|
|
pip install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
|
|
pip install mike
|
|
pip install mkdocs-macros-plugin
|
|
env:
|
|
# Note: It is not the same as ${{ secrets.GITHUB_TOKEN }} !
|
|
GH_TOKEN: ${{ secrets.MKDOCS_AQUA_BOT }}
|
|
- run: |
|
|
git config user.name "aqua-bot"
|
|
git config user.email "aqua-bot@users.noreply.github.com"
|
|
- run: |
|
|
mike deploy --push --update-aliases ${{ github.event.inputs.version }} latest
|