Skip to content

Merge pull request #109 from RubenVerg/fix-advances #124

Merge pull request #109 from RubenVerg/fix-advances

Merge pull request #109 from RubenVerg/fix-advances #124

Workflow file for this run

name: Build font and deploy site
on:
push:
branches: master
pull_request:
branches: master
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
name: Build
runs-on: ubuntu-22.04
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Download FontForge
run: |
wget -O ff.AppImage https://github.com/fontforge/fontforge/releases/download/20230101/FontForge-2023-01-01-a1dad3e-x86_64.AppImage
chmod +x ff.AppImage
./ff.AppImage --appimage-extract > /dev/null
mv ./squashfs-root ./ff
rm ff.AppImage
- name: Run script
run: './ff/AppRun -script $(pwd)/script.py $(pwd) $(git rev-parse HEAD)'
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: fonts
path: |
output/
deploy:
if: ${{ github.ref == 'refs/heads/master' }}
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs:
- build
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Download fonts
uses: actions/download-artifact@v4
with:
name: 'fonts'
path: '.'
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: '.'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4