5
5
6
6
jobs :
7
7
build :
8
+ strategy :
9
+ matrix :
10
+ include :
11
+ - package : ioshelfka-mono-nerd
12
+ artifact : IoshelfkaMonoNerd.zip
13
+ - package : ioshelfka-term-nerd
14
+ artifact : IoshelfkaTermNerd.zip
15
+ - package : ioshelfka-mono
16
+ artifact : IoshelfkaMono.zip
17
+ - package : ioshelfka-term
18
+ artifact : IoshelfkaTerm.zip
8
19
runs-on : ubuntu-latest
9
20
steps :
10
21
- name : Install Nix
14
25
extra-conf : |
15
26
extra-experimental-features = nix-command flakes
16
27
17
- - name : Install Magic Nix Cache
18
- uses : DeterminateSystems/magic-nix-cache-action@main
19
-
20
28
- name : Checkout
21
29
uses : actions/checkout@v4
22
30
@@ -27,17 +35,18 @@ jobs:
27
35
28
36
# Build only the Mono Nerd variant for now. Rest can be handled with
29
37
# a matrix in the future.
30
- nix build .#ioshelfka-mono-nerd --print-build-logs || exit 1
38
+ nix build .#${{ matrix.package }} --print-build-logs || exit 1
31
39
32
40
# Contains built fonts and a NerdFonts directory for *patched* fonts.
33
41
# Upload both of them, Nix might be able to resolve fonts from the
34
42
# unpacked archive.
35
- zip -vr9 IoshelfkaMonoNerd.zip ./result/share/fonts/truetype
43
+ zip -vr9 ${{ matrix.artifact }} ./result/share/fonts/truetype
36
44
37
- - name : Release
38
- uses : ncipollo/ release-action@v1
45
+ - name : Upload binaries to release
46
+ uses : svenstaro/upload- release-action@v2
39
47
with :
40
- omitBody : true
41
- omitName : true
42
- allowUpdates : true
43
- artifacts : " IoshelfkaMonoNerd.zip"
48
+ repo_token : ${{ secrets.GITHUB_TOKEN }}
49
+ file : ${{ matrix.artifact }}
50
+ asset_name : IoshelfkaMonoNerd.zip
51
+ tag : ${{ github.ref }}
52
+ overwrite : true
0 commit comments