Merge pull request #109 from RubenVerg/fix-advances #124
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 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 |