Merge pull request #3914 from ack-bot/olm-bundle-cloudfront-0.0.2 #330
This file contains 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: "Documentation" | |
on: | |
push: | |
paths: | |
- docs/** | |
- mkdocs.yml | |
- README.md | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
documentation: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Generate docs | |
run: | | |
pip install mkdocs mkdocs-material pymdown-extensions | |
# Replace relatives links from root folder to docs folder | |
# - remove docs/ from links | |
sed -i -e "s/(docs\//(/g" README.md | |
mkdocs build | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./site |