mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-03-28 20:55:21 +00:00
Add CJK font support to CI
This commit is contained in:
4
.github/workflows/ci.yaml
vendored
4
.github/workflows/ci.yaml
vendored
@@ -14,10 +14,10 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- name: Install Chromium
|
- name: Install Chromium and CJK fonts
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y chromium-browser
|
sudo apt-get install -y chromium-browser fonts-noto-cjk fonts-noto-cjk-extra
|
||||||
- name: Install mdpress (latest)
|
- name: Install mdpress (latest)
|
||||||
run: |
|
run: |
|
||||||
LATEST_TAG=$(curl -fsSL https://api.github.com/repos/yeasy/mdpress/releases/latest | jq -r .tag_name)
|
LATEST_TAG=$(curl -fsSL https://api.github.com/repos/yeasy/mdpress/releases/latest | jq -r .tag_name)
|
||||||
|
|||||||
14
.github/workflows/release-pdf.yml
vendored
14
.github/workflows/release-pdf.yml
vendored
@@ -1,8 +1,9 @@
|
|||||||
name: Build PDF on Release
|
name: Build PDF on Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
push:
|
||||||
types: [published]
|
tags:
|
||||||
|
- 'v*'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
@@ -16,10 +17,10 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Install Chromium
|
- name: Install Chromium and CJK fonts
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y chromium-browser
|
sudo apt-get install -y chromium-browser fonts-noto-cjk fonts-noto-cjk-extra
|
||||||
|
|
||||||
- name: Install mdpress (latest)
|
- name: Install mdpress (latest)
|
||||||
run: |
|
run: |
|
||||||
@@ -34,10 +35,11 @@ jobs:
|
|||||||
- name: Build PDF
|
- name: Build PDF
|
||||||
run: mdpress build --format pdf --output docker_practice.pdf
|
run: mdpress build --format pdf --output docker_practice.pdf
|
||||||
|
|
||||||
- name: Upload PDF to Release
|
- name: Create Release and upload PDF
|
||||||
if: github.event_name == 'release'
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
|
generate_release_notes: true
|
||||||
files: docker_practice.pdf
|
files: docker_practice.pdf
|
||||||
|
|
||||||
- name: Upload PDF as artifact
|
- name: Upload PDF as artifact
|
||||||
|
|||||||
Reference in New Issue
Block a user