1
0
Fork 0
mirror of https://github.com/kyverno/policy-reporter.git synced 2024-12-14 11:57:32 +00:00

init docs workflow

Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
This commit is contained in:
Frank Jogeleit 2021-12-05 19:06:07 +01:00
parent a462e4a4a3
commit ad8fa022fd

41
.github/workflows/docs.yaml vendored Normal file
View file

@ -0,0 +1,41 @@
name: Docs
on:
push:
branches:
- gh-pages
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup node env
uses: actions/setup-node@v2.1.2
with:
node-version: 16
- name: Docs
run: cd docs
- name: Install dependencies
run: npm install
- name: Generate
run: npm run generate
- name: Copy Helm files
run: |
cd ..
cp index.yaml ./dist/index.yaml
cp artifacthub-repo.yml ./dist/artifacthub-repo.yml
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist