-
Notifications
You must be signed in to change notification settings - Fork 0
83 lines (71 loc) · 2.03 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: Release
on:
push:
tags: "**"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
typeface:
[
"Zenbones-Mono",
"Zenbones-Slab",
"Zenbones-Brainy",
"Zenbones-Proto",
]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Install ttfautohint
run: |
sudo apt-get update
sudo apt-get install ttfautohint
- name: Clone Iosevka
run: |
cd ..
iosevka_version=$(cat ./zenbones-mono/.iosevka-version)
git clone --depth 1 https://github.com/be5invis/Iosevka.git
cd Iosevka
git fetch --tags --quiet
git checkout tags/${iosevka_version}
- name: Build Zenbones Mono
run: |
cd ../Iosevka
cp ../zenbones-mono/private-build-plans.toml ./private-build-plans.toml
npm install
npm run build -- contents::${{ matrix.typeface }}
- name: Zip build files
run: |
cd ../Iosevka/dist
tar czf ${{ matrix.typeface }}.tar.gz ${{ matrix.typeface }}
- name: Upload zip file
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.typeface }}
path: /home/runner/work/zenbones-mono/Iosevka/dist/${{ matrix.typeface }}.tar.gz
release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download all workflow run artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
merge-multiple: true
- name: Create release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
files: artifacts/*.tar.gz
call-create-images-workflow:
needs: release
uses: ./.github/workflows/create-images.yml