mirror of
https://github.com/multipleof4/stain.otf.git
synced 2026-01-14 00:27:55 +00:00
33 lines
749 B
YAML
33 lines
749 B
YAML
name: Build and Deploy Font
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
|
|
- name: Install Dependencies
|
|
run: npm install
|
|
|
|
- name: Build Font
|
|
run: npm run build
|
|
|
|
- name: Commit and Push Font
|
|
run: |
|
|
git config --global user.name 'github-actions[bot]'
|
|
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
|
|
git add dist/Stain.otf
|
|
git commit -m "Build: Generate font file via GitHub Actions" || exit 0
|
|
git push
|