mirror of
https://github.com/multipleof4/stain.otf.git
synced 2026-01-14 00:27:55 +00:00
Delete build-font.yml
This commit is contained in:
45
.github/workflows/build-font.yml
vendored
45
.github/workflows/build-font.yml
vendored
@@ -1,45 +0,0 @@
|
|||||||
name: Build and Commit StainFont
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ "master", "main" ]
|
|
||||||
workflow_dispatch: {}
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build-font:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Setup Node
|
|
||||||
uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: "20"
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: npm ci || npm install
|
|
||||||
|
|
||||||
- name: Build font
|
|
||||||
run: npm run build:font
|
|
||||||
|
|
||||||
- name: Validate font
|
|
||||||
run: npm run test
|
|
||||||
|
|
||||||
- name: Commit generated fonts
|
|
||||||
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 Regular"
|
|
||||||
git push
|
|
||||||
else
|
|
||||||
echo "No changes in dist; skipping commit."
|
|
||||||
fi
|
|
||||||
Reference in New Issue
Block a user