mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2024-09-19 09:51:48 +02:00
CI: Fix fontconfig and casks
[why] The fontconfig and cask generation seems unfinished or broken. [how] Fix the point in time when the fontconfig is generated and commit any changes back to the repo. Generate the casks and store them as CI artifacts at least. Probably they should be uploaded to the cask repo (on 'real' releases)? Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
parent
c292e7e8c6
commit
967036e731
1 changed files with 30 additions and 6 deletions
36
.github/workflows/release.yml
vendored
36
.github/workflows/release.yml
vendored
|
@ -196,17 +196,18 @@ jobs:
|
|||
fontforge --script `pwd`/../../font-patcher --version
|
||||
./gotta-patch-em-all-font-patcher\!.sh "/${{ matrix.font }}"
|
||||
|
||||
- name: Generate fontconfig and casks
|
||||
run: |
|
||||
cd -- "$GITHUB_WORKSPACE/bin/scripts"
|
||||
./generate-fontconfig.sh
|
||||
./generate-casks.sh "${{ matrix.font }}"
|
||||
|
||||
- name: Archive font package zip files
|
||||
run: |
|
||||
cd -- "$GITHUB_WORKSPACE/bin/scripts"
|
||||
./archive-fonts.sh "${{ matrix.font }}"
|
||||
|
||||
- name: Generate cask
|
||||
# The casks are not used at the moment, but probably Ryan
|
||||
# wanted to push them out somewhere
|
||||
run: |
|
||||
cd -- "$GITHUB_WORKSPACE/bin/scripts"
|
||||
./generate-casks.sh "${{ matrix.font }}"
|
||||
|
||||
- name: Upload zip file archive for release
|
||||
uses: softprops/action-gh-release@v0.1.14
|
||||
if: needs.setup-fonts-matrix.outputs.rel_upload == 'true'
|
||||
|
@ -225,6 +226,16 @@ jobs:
|
|||
patched-fonts/${{ matrix.font }}
|
||||
LICENSE
|
||||
|
||||
- name: Upload casks as artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: casks
|
||||
# adding multiple paths (i.e. LICENSE) is a workaround to get a least common ancestor
|
||||
# of the root directory for artifact path purposes
|
||||
path: |
|
||||
casks/${{ matrix.font }}
|
||||
LICENSE
|
||||
|
||||
release-font-patcher:
|
||||
name: Archive font patcher and add to release
|
||||
needs: [ setup-fonts-matrix, build ]
|
||||
|
@ -303,6 +314,19 @@ jobs:
|
|||
committer_name: GitHub Actions
|
||||
committer_email: 41898282+github-actions[bot]@users.noreply.github.com
|
||||
|
||||
- name: Generate fontconfig
|
||||
run: |
|
||||
cd -- "$GITHUB_WORKSPACE/bin/scripts"
|
||||
./generate-fontconfig.sh
|
||||
|
||||
- name: Commit fontconfig back to repo
|
||||
uses: EndBug/add-and-commit@v9
|
||||
with:
|
||||
add: '10-nerd-font-symbols.conf'
|
||||
message: Regenerate fontconfig
|
||||
committer_name: GitHub Actions
|
||||
committer_email: 41898282+github-actions[bot]@users.noreply.github.com
|
||||
|
||||
- name: Adjust release tag to include previous commit
|
||||
uses: EndBug/latest-tag@v1.5.0
|
||||
if: needs.setup-fonts-matrix.outputs.rel_upload == 'true'
|
||||
|
|
Loading…
Reference in a new issue