-
-
Notifications
You must be signed in to change notification settings - Fork 31
34 lines (32 loc) · 975 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Release
on:
release:
types: [published]
jobs:
release:
permissions:
contents: write
strategy:
matrix:
font-size: [8, 10, 12]
width-mode: [monospaced, proportional]
font-format: [otf, ttf, woff2, bdf, pcf, otc, ttc]
fail-fast: false
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install pip --upgrade
python -m pip install -r requirements.txt
- name: Build
run: python -m tools.cli --cleanup --font-sizes ${{ matrix.font-size }} --width-modes ${{ matrix.width-mode }} --font-formats ${{ matrix.font-format }} --attachments release
- name: Release
uses: softprops/action-gh-release@v2
with:
files: ./build/releases/*.zip