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:
parent
a462e4a4a3
commit
ad8fa022fd
1 changed files with 41 additions and 0 deletions
41
.github/workflows/docs.yaml
vendored
Normal file
41
.github/workflows/docs.yaml
vendored
Normal 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
|
||||
|
Loading…
Reference in a new issue