TensorOperations.jl Package Extension #826
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: | |
| # After merge: deploy live docs. Feature branches only run via pull_request. | |
| branches: | |
| - main | |
| pull_request: | |
| paths: | |
| - '.github/workflows/docs.yml' | |
| - '.github/workflows/docs-tags.yml' | |
| - 'src/**' | |
| - 'docs/**' | |
| - 'README.md' | |
| - 'lib/CNPreferences/**' | |
| workflow_dispatch: | |
| jobs: | |
| docs: | |
| name: Documentation | |
| if: ${{ !contains(toJSON(github.event), '[skip ci]') }} | |
| permissions: | |
| actions: write | |
| contents: write | |
| pull-requests: read | |
| statuses: write | |
| runs-on: ubuntu-latest | |
| env: | |
| LEGATE_AUTO_CONFIG: 0 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: julia-actions/setup-julia@v2 | |
| with: | |
| version: '1.11' | |
| - uses: julia-actions/cache@v2 | |
| - name: Setup cuNumeric.jl | |
| run: | | |
| julia --color=yes --project=docs -e ' | |
| using Pkg | |
| Pkg.develop(PackageSpec(path = "lib/CNPreferences")) | |
| Pkg.develop(PackageSpec(path = ".")) | |
| ' | |
| - name: Instantiate docs environment | |
| run: | | |
| julia --color=yes --project=docs -e ' | |
| using Pkg | |
| Pkg.instantiate()' | |
| - name: Build documentation | |
| run: julia --color=yes --project=docs docs/make.jl | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} |