Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 32 additions & 21 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,35 @@
name: build
on: push
jobs:
name: Build Zhuque Fangsong

on:
push:
pull_request:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
name: Build Zhuque Fangsong

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build fonts
run: |
cd src
bash build.sh
- name: Upload fonts
uses: actions/upload-artifact@v3
with:
name: ZhuqueFangsong
path: fonts
- name: Checkout repository
uses: actions/checkout@v7

- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"

- name: Install fontmake
run: |
python -m pip install --upgrade pip
pip install fontmake

- name: Compile Glyphs to TTF
run: |
mkdir -p build
fontmake -g src/ZhuqueFangsong.glyphspackage -o ttf --output-path build/ZhuqueFangsong.ttf

- name: Upload Font
uses: actions/upload-artifact@v7
with:
name: ZhuqueFangsong
path: build/*
2 changes: 0 additions & 2 deletions requirements.txt

This file was deleted.

9 changes: 0 additions & 9 deletions src/build.sh

This file was deleted.