Implement --no-cache global parameter #83
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: | |
| - 'website/**' | |
| - 'README.qmd' | |
| - 'NEWS.md' | |
| - '.github/workflows/docs.yml' | |
| # The CLI reference is generated from the built rig binary, so rebuild | |
| # the site when the commands or their help prose change too. | |
| - 'src/**' | |
| - 'xtask/**' | |
| - 'Cargo.toml' | |
| - 'Cargo.lock' | |
| - 'Makefile' | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| concurrency: | |
| group: website | |
| cancel-in-progress: false | |
| jobs: | |
| build-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: quarto-dev/quarto-actions/setup@v2 | |
| # `make docs` regenerates the CLI reference from the rig binary | |
| # (`make cli-reference`) before rendering, so we need a built rig. | |
| # A debug build is enough; gen-cli-reference.sh falls back to it. | |
| - name: Build rig | |
| run: cargo build | |
| - name: Render site | |
| run: make docs | |
| - name: Deploy to website branch | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| branch: website | |
| folder: website/_site | |
| clean: true |