Skip to content

move docs vor policy-reporter v2 #107

move docs vor policy-reporter v2

move docs vor policy-reporter v2 #107

Workflow file for this run

name: Docs
on:
workflow_dispatch:
push:
branches:
- 1.x
jobs:
deploy:
runs-on: ubuntu-20.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup node env
uses: actions/[email protected]
with:
node-version: 20
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci
- name: Generate
run: npm run generate
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.PERSONAL_TOKEN }}
external_repository: kyverno/policy-reporter
publish_branch: gh-pages
publish_dir: ./.output/public
destination_dir: docs