Fix for combining diacritics #132
Workflow file for this run
This file contains hidden or 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
| name: Build font | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Log in to GitHub Container Registry | |
| if: github.event_name == 'push' | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build (and push on master) Docker image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: xkcd-script/generator | |
| load: true | |
| push: ${{ github.event_name == 'push' }} | |
| tags: ghcr.io/ipython/xkcd-font:fontbuilder | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max | |
| - name: Generate font | |
| run: FONTBUILDER_IMAGE=ghcr.io/ipython/xkcd-font:fontbuilder xkcd-script/generator/run.sh | |
| - name: Generate samples | |
| run: xkcd-script/samples/preview.sh | |
| - name: Upload generated artifacts | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: xkcd-script-font | |
| path: | | |
| xkcd-script/font/xkcd-script.otf | |
| xkcd-script/font/xkcd-script.ttf | |
| xkcd-script/font/xkcd-script.woff | |
| xkcd-script/font/xkcd-script.sfd | |
| xkcd-script/samples/ipsum.png | |
| xkcd-script/samples/handwriting.png | |
| xkcd-script/samples/kerning.png | |
| - name: Check generated files match committed files | |
| run: | | |
| git diff --exit-code xkcd-script/font/ xkcd-script/samples/ || { | |
| echo "" | |
| echo "Generated files differ from committed files." | |
| echo "Download the 'xkcd-script-font' artifact from this run and commit the updated files." | |
| exit 1 | |
| } |