Skip to content

[automation] Auto-update linters version, help and documentation (#2931) #2031

[automation] Auto-update linters version, help and documentation (#2931)

[automation] Auto-update linters version, help and documentation (#2931) #2031

name: "DOC - Build and deploy - Beta"
on:
push:
branches:
- main
- features/doc-versioning
paths:
- "**/build.py"
- "docs/**"
- "**.yml"
- "**.md"
- "**.json"
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
if: github.repository == 'oxsecurity/megalinter'
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/[email protected]
with:
python-version: 3.10.4
- run: pip install --upgrade markdown==3.3.7 mike mkdocs-material pymdown-extensions==9.11 mkdocs-glightbox==0.3.2 mdx_truly_sane_lists json-schema-for-humans giturlparse webpreview
- run: cd .automation && bash build_schemas_doc.sh && cd ..
# - run: mkdocs gh-deploy --force
- run: |
git config --global user.name megalinter-bot
git config --global user.email [email protected]
- run: mike deploy beta --push