Update bundled pdf #5
Workflow file for this run
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: Auto Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install Chromium and CJK fonts | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y chromium-browser fonts-noto-cjk fonts-noto-cjk-extra | |
| - name: Install mdpress (latest) | |
| run: | | |
| LATEST_TAG=$(curl -fsSL https://api.github.com/repos/yeasy/mdpress/releases/latest | jq -r .tag_name) | |
| VERSION="${LATEST_TAG#v}" | |
| echo "Installing mdpress $VERSION" | |
| curl -fsSL "https://github.com/yeasy/mdPress/releases/download/$LATEST_TAG/mdpress_${VERSION}_linux_amd64.tar.gz" -o /tmp/mdpress.tar.gz | |
| tar xzf /tmp/mdpress.tar.gz -C /tmp mdpress | |
| sudo mv /tmp/mdpress /usr/local/bin/ | |
| mdpress --version | |
| - name: Extract tag name | |
| id: tag | |
| run: echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT | |
| - name: Build PDF | |
| run: mdpress build --format pdf --output agentic_ai_guide-${{ steps.tag.outputs.TAG_NAME || 'latest' }}.pdf | |
| - name: Create Release with PDF | |
| if: startsWith(github.ref, 'refs/tags/') | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| generate_release_notes: true | |
| files: agentic_ai_guide-${{ steps.tag.outputs.TAG_NAME }}.pdf | |
| - name: Upload PDF as artifact | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: agentic_ai_guide-pdf | |
| path: "agentic_ai_guide-*.pdf" |