docs(content): add cautious AI-for-science examples #129
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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: Build PDF | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install Chromium and CJK fonts | |
| uses: browser-actions/setup-chrome@v2 | |
| with: | |
| chrome-version: stable | |
| - name: Install CJK fonts | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y fonts-noto-cjk fonts-noto-cjk-extra | |
| - name: Install mdpress 0.7.10 | |
| env: | |
| MDPRESS_VERSION: "0.7.10" | |
| MDPRESS_SHA256: "17e53e455996940bbbce64c69c43b3fb543f1501e03b74cf0434074efebd2db4" | |
| run: | | |
| archive="/tmp/mdpress_${MDPRESS_VERSION}_linux_amd64.tar.gz" | |
| echo "Installing mdpress ${MDPRESS_VERSION}" | |
| curl -fsSL "https://github.com/yeasy/mdPress/releases/download/v${MDPRESS_VERSION}/mdpress_${MDPRESS_VERSION}_linux_amd64.tar.gz" -o "$archive" | |
| echo "${MDPRESS_SHA256} $archive" | sha256sum -c - | |
| tar xzf "$archive" | |
| sudo mv mdpress /usr/local/bin/ | |
| mdpress --version | |
| - name: Validate book rules | |
| run: python3 check_project_rules.py | |
| - name: Build PDF | |
| run: mdpress build --format pdf --output ai_beginner_guide.pdf | |
| - name: Upload PDF as artifact | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: ai_beginner_guide-pdf | |
| path: ai_beginner_guide.pdf |