Skip to content

Commit e9d8fdd

Browse files
committed
release matrix
1 parent b2647d1 commit e9d8fdd

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/release.yaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,27 @@ on:
66
jobs:
77
build:
88
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
output: ["ttf-nerd-zip", "ttf-zip", "web-zip"]
912
steps:
1013
- name: Install nix
1114
uses: cachix/install-nix-action@master
1215
with:
1316
install_url: https://nixos.org/nix/install
1417
extra_nix_config: experimental-features = nix-command flakes
18+
1519
- name: Checkout
1620
uses: actions/checkout@v3
17-
- name: Build zipfile
21+
22+
- name: Build
1823
run: |
19-
nix build -L
20-
cp -vL ./result ./iosevka.zip
24+
nix build .#${{ matrix.output }} -L
25+
cp -vL ./result ./iosevka-${{ matrix.output }}.zip
26+
2127
- uses: ncipollo/release-action@v1
2228
name: Release
2329
with:
2430
omitBody: true
2531
omitName: true
26-
artifacts: "iosevka.zip"
32+
artifacts: iosevka-${{ matrix.output }}.zip

0 commit comments

Comments
 (0)