Merge pull request #67 from tonedefdev/docs/fix-verbiage #49
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: Docs | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - .github/workflows/docs.yaml | |
| - docs/** | |
| - overrides/** | |
| - mkdocs.yml | |
| - CONTRIBUTING.md | |
| - chart/opendepot/README.md | |
| jobs: | |
| deploy: | |
| name: Deploy MkDocs to GitHub Pages | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.x" | |
| - name: Install system dependencies for social cards | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libcairo2-dev libfreetype6-dev libffi-dev libjpeg-dev libpng-dev libz-dev | |
| - name: Install MkDocs dependencies | |
| run: pip install -r requirements.txt | |
| - name: Fetch existing Helm chart index | |
| run: git show origin/gh-pages:index.yaml > /tmp/helm-index.yaml 2>/dev/null || true | |
| - name: Build MkDocs site | |
| run: mkdocs build | |
| - name: Preserve Helm chart index | |
| run: | | |
| if [ -s /tmp/helm-index.yaml ]; then | |
| cp /tmp/helm-index.yaml site/index.yaml | |
| fi | |
| - name: Deploy to GitHub Pages | |
| run: | | |
| git config user.name "$GITHUB_ACTOR" | |
| git config user.email "$GITHUB_ACTOR@users.noreply.github.com" | |
| ghp-import --no-jekyll --push --force site |