Skip to content

Commit

Permalink
Tested multiple jobs, multiple branches strategy, create release work…
Browse files Browse the repository at this point in the history
…flow
  • Loading branch information
Transfusion committed Mar 29, 2021
1 parent 0e2d90e commit 4294566
Showing 1 changed file with 26 additions and 4 deletions.
30 changes: 26 additions & 4 deletions .github/workflows/generate-woff2-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,30 @@ on:
jobs:
build:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
cjk: [1, 0]
locale: ["g", "t", "h", "j", "k", "v"]
include:
- cjk: 1
branch-cjk: cjk
- cjk: 0
branch-cjk: single
- locale: g
locale-suffix: SC
- locale: t
locale-suffix: TC
- locale: h
locale-suffix: HK
- locale: j
locale-suffix: JP
- locale: k
locale-suffix: KR
- locale: v
locale-suffix: VN

container:
image: transfusion/font-splitter
steps:
Expand Down Expand Up @@ -55,13 +79,11 @@ jobs:
run: uname -a && cat /etc/issue

- name: Generate woff2
run: poetry run driver /font-splitter/bin/font-splitter
# env:
# TEST_RUN: true
run: poetry run driver /font-splitter/bin/font-splitter ${{ matrix.locale }} ${{ matrix.cjk }}

- uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: built
branch: built-${{ matrix.branch-cjk }}-${{ matrix.locale-suffix }}

- name: Release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit 4294566

Please sign in to comment.