Skip to content

Commit 23a54ad

Browse files
pathumegoclaude
andcommitted
ci: archive dev-channel fonts for FontPipe; drop flaky snap yq install
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 6edf702 commit 23a54ad

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/build.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
run: |
3838
sudo apt-get update
3939
sudo apt-get install ttfautohint libcairo2-dev python3-cairo-dev pkg-config python3-dev
40-
sudo snap install yq
40+
# yq (mikefarah) is preinstalled on GitHub-hosted ubuntu runners; snap is flaky, so avoid it
4141
- uses: actions/cache@v5
4242
with:
4343
path: ./venv/
@@ -84,6 +84,17 @@ jobs:
8484
path: |
8585
fonts
8686
out
87+
- name: Set short SHA
88+
if: ${{ github.ref_name == 'dev' && github.event_name == 'push' }}
89+
shell: bash
90+
run: echo "SHORT_SHA=${GITHUB_SHA::7}" >> $GITHUB_ENV
91+
- name: Archive dev-channel fonts for FontPipe
92+
if: ${{ github.ref_name == 'dev' && github.event_name == 'push' }}
93+
uses: actions/upload-artifact@v6
94+
with:
95+
name: dev-fonts-${{ env.SHORT_SHA }}
96+
path: fonts/**/*.ttf
97+
retention-days: 30
8798
outputs:
8899
zip_name: ${{ env.ZIP_NAME }}
89100

0 commit comments

Comments
 (0)