Deploy Docs to GitHub Pages #18
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 Docs to GitHub Pages | |
| run-name: Deploy Docs to GitHub Pages | |
| on: | |
| push: | |
| tags: | |
| - 'v*' # Trigger on tags like v1.0, v2.3.4 | |
| workflow_dispatch: # Enable manual triggering | |
| jobs: | |
| deploy-docs: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write # Needed to push to gh-pages | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./docs | |
| user_name: 'sre-docs' | |
| user_email: 'sre-docs@users.noreply.github.com' |