ci: Configure CI on self-hosted runner (#236) #199
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 C/C++ | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - '.github/**' | |
| - 'include/**' | |
| - 'src/**' | |
| - 'Doxyfile' | |
| - 'README.md' | |
| jobs: | |
| build: | |
| # Do not attempt to deploy documentation on forks | |
| if: github.repository_owner == 'SparseLinearAlgebra' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Generate documentation | |
| uses: mattnotmitt/[email protected] | |
| - name: Publish to Github Pages | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./html/ | |
| destination_dir: docs-cpp |