fix #6
Workflow file for this run
This file contains 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: Generate PDF | |
permissions: | |
contents: write | |
discussions: write | |
on: | |
push: | |
tags: | |
- "v*" # 仅在推送标签时触发 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Bun | |
uses: oven-sh/setup-bun@v2 | |
with: | |
bun-version: latest | |
- name: Install Chinese fonts | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y fonts-wqy-zenhei | |
- name: Install dependencies with Bun | |
run: bun install | |
- name: Export PDF with Bun | |
run: bun export-pdf | |
- name: Create and Upload Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: PDF/zig_course.pdf |