-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1044 from b-/release-master-fontpatcher
Create FontPatcher.zip in repo up-to-date with master
- Loading branch information
Showing
2 changed files
with
63 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Create FontPatcher.zip | ||
|
||
on: | ||
push: | ||
branches: master | ||
paths: | ||
- font-patcher | ||
- src/glyphs/** | ||
- src/archive-font-patcher-readme.me | ||
- bin/scripts/archive-font-patcher.sh | ||
- bin/scripts/name_parser/Fontname*.py | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- 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@v3 | ||
with: | ||
path: archives/FontPatcher.zip | ||
retention-days: 1 | ||
|
||
- name: Check if archive contents changed | ||
id: updated-or-not | ||
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 | ||
with: | ||
fetch: false | ||
add: "FontPatcher.zip" | ||
message: "[ci] Update FontPatcher.zip" | ||
committer_name: GitHub Actions | ||
committer_email: 41898282+github-actions[bot]@users.noreply.github.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters