Skip to content

Release v7.7

Release v7.7 #25

Workflow file for this run

name: Build All Formats and Release
on:
push:
tags:
- v*
workflow_dispatch:
inputs:
build_args:
description: 'Args for build.py'
required: false
default: ''
type: string
permissions:
contents: write
jobs:
build:
strategy:
matrix:
config: [
{name: normal-liga, args: "--normal --liga"},
{name: normal-no-liga, args: "--normal --no-liga"},
{name: liga, args: "--liga"},
{name: no-liga, args: "--no-liga"}
]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
cache-dependency-path: './requirements.txt'
- run: pip install -r requirements.txt
- name: Build fonts
run: |
python build.py --archive --cn-both --hinted ${{ matrix.config.args }} ${{ github.event.inputs.build_args }}
python build.py --archive --cn-both --no-hinted --cache ${{ matrix.config.args }} ${{ github.event.inputs.build_args }}
- uses: actions/upload-artifact@v4
with:
name: release-artifacts-${{ matrix.config.name }}
path: fonts/archive/*
create-release:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/download-artifact@v4
with:
pattern: release-artifacts*
path: release
- name: Release artifacts
run: python task.py publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}