Merge pull request #502 from raajheshkannaa/feat/obfuscated-admin-policy #311
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: deploy v2 | |
| on: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| if: github.event.repository.fork == false | |
| env: | |
| GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.x | |
| - uses: actions/cache@v4 | |
| with: | |
| key: mkdocs-material-${{ env.cache_id }} | |
| path: .cache | |
| restore-keys: | | |
| mkdocs-material- | |
| - run: sudo apt-get update | |
| - run: sudo apt-get install -y libcairo2-dev libfreetype6-dev libffi-dev libjpeg-dev libpng-dev libz-dev | |
| - run: pip install pillow cairosvg | |
| - run: pip install mkdocs-minify-plugin | |
| - run: pip install mkdocs-awesome-pages-plugin | |
| - run: pip install mkdocs-redirects | |
| - run: pip install mkdocs-git-revision-date-localized-plugin | |
| - run: pip install mkdocs-git-committers-plugin-2 | |
| - run: pip install mkdocs-rss-plugin | |
| - run: pip install --use-pep517 mkdocs-glightbox | |
| - run: pip install git+https://${{ secrets.GH_TOKEN }}@github.com/squidfunk/mkdocs-material-insiders.git | |
| - run: mkdocs gh-deploy --force --config-file mkdocs.insiders.yml |