Skip to content

simplify release

simplify release #1

Workflow file for this run

name: Release
on:
push:
tags: **

Check failure on line 5 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

You have an error in your yaml syntax on line 5
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
workflow_call:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
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
working-directory: ..
run: |
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
working-directory: ../Iosevka
run: |
cp ../zenbones-mono/private-build-plans.toml ./private-build-plans.toml
npm install
npm run build -- contents::${{ matrix.typeface }}
- name: Zip build files
working-directory: ../Iosevka/dist
run: |
tar czf ${{ matrix.typeface }}.tar.gz ${{ matrix.typeface }}
- name: Upload zip file
uses: actions/upload-artifact@v4
working-directory: ../Iosevka/dist
with:
name: ${{ matrix.typeface }}
path: ${{ 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:
uses: ./.github/workflows/create-images.yml
needs: build