修复编辑问题:错别字/语病/术语/标点等 19 处(自动审校) #149
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 | |
| env: | |
| MDPRESS_VERSION: 0.7.10 | |
| MDPRESS_SHA256: 17e53e455996940bbbce64c69c43b3fb543f1501e03b74cf0434074efebd2db4 | |
| jobs: | |
| build: | |
| name: Build PDF | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Chrome | |
| uses: browser-actions/setup-chrome@2e1d749697dd1612b833dba4a722266286fbefcd # v2.1.2 | |
| 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 v${{ env.MDPRESS_VERSION }} | |
| run: | | |
| curl -fsSL "https://github.com/yeasy/mdPress/releases/download/v${MDPRESS_VERSION}/mdpress_${MDPRESS_VERSION}_linux_amd64.tar.gz" -o /tmp/mdpress.tar.gz | |
| echo "${MDPRESS_SHA256} /tmp/mdpress.tar.gz" | sha256sum -c - | |
| tar xzf /tmp/mdpress.tar.gz -C /tmp mdpress | |
| sudo mv /tmp/mdpress /usr/local/bin/ | |
| mdpress --version | |
| - name: Build PDF | |
| run: mdpress build --format pdf --output claude_guide.pdf | |
| - name: Upload PDF as artifact | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: claude_guide-pdf | |
| path: claude_guide.pdf |