1
0
mirror of https://github.com/ryanoasis/nerd-fonts.git synced 2024-12-25 20:18:01 +02:00
nerd-fonts/.github/workflows/zip-release.yml

55 lines
1.4 KiB
YAML
Raw Normal View History

name: Create FontPatcher.zip
2023-01-09 21:55:47 +02:00
on:
push:
branches: master
2023-01-09 23:52:30 +02:00
paths:
- font-patcher
- src/glyphs/**
- src/archive-font-patcher-readme.me
- bin/scripts/archive-font-patcher.sh
- bin/scripts/name_parser/Fontname*.py
2023-01-09 21:55:47 +02:00
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Fetch dependencies
run: sudo apt install -y -q zipcmp
- name: Create archive
run: |
chmod u+x font-patcher bin/scripts/archive-font-patcher.sh
cd bin/scripts
./archive-font-patcher.sh intermediate
- name: Upload archive as artifact
uses: actions/upload-artifact@v4
2023-02-09 21:37:03 +02:00
with:
path: archives/FontPatcher.zip
retention-days: 1
- name: Check if archive contents changed
id: updated-or-not
2023-02-09 21:37:03 +02:00
run: |
(zipcmp archives/FontPatcher.zip ./FontPatcher.zip; \
echo "updated=$?" >> $GITHUB_OUTPUT) || true
- name: Prepare commit
if: steps.updated-or-not.outputs.updated != 0
run: cp -f archives/FontPatcher.zip .
- name: Commit new archive
uses: EndBug/add-and-commit@v9
if: steps.updated-or-not.outputs.updated != 0
2023-01-09 23:52:30 +02:00
with:
fetch: false
add: "FontPatcher.zip"
message: "[ci] Update FontPatcher.zip"
2023-01-09 23:52:30 +02:00
committer_name: GitHub Actions
committer_email: 41898282+github-actions[bot]@users.noreply.github.com