docs: add ROADMAP.md from 7-persona consensus review #40
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: Build and deploy | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| env: | |
| BASE_URL: /to-serve-man | |
| SITE_URL: https://pjdoland.github.io/to-serve-man | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| cache: pip | |
| cache-dependency-path: pyproject.toml | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| - run: pip install -e ".[dev]" | |
| - run: npm install | |
| - name: Lint (ruff) | |
| run: ruff check . && ruff format --check . | |
| - name: Validate recipes | |
| run: python build.py validate | |
| - name: Run tests | |
| run: python -m unittest discover -s tests -t . -v | |
| - name: Build site | |
| run: python build.py site | |
| - name: Generate LaTeX source | |
| run: python build.py latex | |
| - name: Compile PDF | |
| uses: xu-cheng/latex-action@v3 | |
| with: | |
| working_directory: output | |
| root_file: cookbook.tex | |
| latexmk_use_xelatex: false | |
| args: -pdf -interaction=nonstopmode -f | |
| continue-on-error: true | |
| - name: Verify PDF was produced | |
| run: test -s output/cookbook.pdf | |
| - name: Copy PDF into site | |
| run: cp output/cookbook.pdf docs/cookbook.pdf | |
| - uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: docs | |
| deploy: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - id: deployment | |
| uses: actions/deploy-pages@v4 |