mirror of
https://github.com/multipleof4/stain.otf.git
synced 2026-01-13 16:17:55 +00:00
43 lines
901 B
YAML
43 lines
901 B
YAML
name: Build Stain Font
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- main
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
build-font:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
persist-credentials: true
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
|
|
- name: Install
|
|
run: npm ci || npm install
|
|
|
|
- name: Build font
|
|
run: npm run build
|
|
|
|
- name: Commit dist
|
|
run: |
|
|
if [ -n "$(git status --porcelain dist)" ]; then
|
|
git config user.name "github-actions[bot]"
|
|
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
git add dist
|
|
git commit -m "chore: build Stain font"
|
|
git push
|
|
else
|
|
echo "No changes to dist."
|
|
fi
|