Skip to content

Commit 5449004

Browse files
committed
build more variants
1 parent d86f38c commit 5449004

File tree

1 file changed

+20
-11
lines changed

1 file changed

+20
-11
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@ on:
55

66
jobs:
77
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
819
runs-on: ubuntu-latest
920
steps:
1021
- name: Install Nix
@@ -14,9 +25,6 @@ jobs:
1425
extra-conf: |
1526
extra-experimental-features = nix-command flakes
1627
17-
- name: Install Magic Nix Cache
18-
uses: DeterminateSystems/magic-nix-cache-action@main
19-
2028
- name: Checkout
2129
uses: actions/checkout@v4
2230

@@ -27,17 +35,18 @@ jobs:
2735
2836
# Build only the Mono Nerd variant for now. Rest can be handled with
2937
# 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
3139
3240
# Contains built fonts and a NerdFonts directory for *patched* fonts.
3341
# Upload both of them, Nix might be able to resolve fonts from the
3442
# unpacked archive.
35-
zip -vr9 IoshelfkaMonoNerd.zip ./result/share/fonts/truetype
43+
zip -vr9 ${{ matrix.artifact }} ./result/share/fonts/truetype
3644
37-
- name: Release
38-
uses: ncipollo/release-action@v1
45+
- name: Upload binaries to release
46+
uses: svenstaro/upload-release-action@v2
3947
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

Comments
 (0)