mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2024-12-19 05:08:07 +00:00
31 lines
862 B
YAML
31 lines
862 B
YAML
![]() |
---
|
||
|
name: Deploy the latest documentation
|
||
|
on:
|
||
|
push:
|
||
|
tags:
|
||
|
- "v*"
|
||
|
jobs:
|
||
|
deploy:
|
||
|
name: Deploy the latest 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
|
||
|
- name: Install dependencies
|
||
|
run: |
|
||
|
pip install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
|
||
|
pip install mike
|
||
|
pip install mkdocs-macros-plugin
|
||
|
env:
|
||
|
GH_TOKEN: ${{ secrets.ORG_GITHUB_TOKEN }}
|
||
|
- name: Deploy the latest documents
|
||
|
run: |
|
||
|
VERSION=$(echo ${{ github.ref }} | sed -e "s#refs/tags/##g")
|
||
|
mike deploy --push --update-aliases $VERSION latest
|