-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from aaronbell/main
Updating the build system and fonts
- Loading branch information
Showing
10,510 changed files
with
922,000 additions
and
82 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: Build font and specimen | ||
|
||
on: [push, release] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.10" | ||
- name: Install sys tools/deps | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install ttfautohint | ||
sudo snap install yq | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ./venv/ | ||
key: ${{ runner.os }}-venv-${{ hashFiles('**/requirements*.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-venv- | ||
- name: gen zip file name | ||
id: zip-name | ||
shell: bash | ||
# Set the archive name to repo name + "-assets" e.g "MavenPro-assets" | ||
run: echo "ZIP_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')-fonts" >> $GITHUB_ENV | ||
# If a new release is cut, use the release tag to auto-bump the source files | ||
- name: Bump release | ||
if: github.event_name == 'release' | ||
run: | | ||
. venv/bin/activate | ||
SRCS=$(yq e ".sources[]" sources/config.yaml) | ||
TAG_NAME=${GITHUB_REF/refs\/tags\//} | ||
echo "Bumping $SRCS to $TAG_NAME" | ||
for src in $SRCS | ||
do | ||
bumpfontversion sources/$src --new-version $TAG_NAME; | ||
done | ||
- name: Build font | ||
run: make build | ||
release: | ||
# only run if the commit is tagged... | ||
if: github.event_name == 'release' | ||
# ... and it builds successfully | ||
needs: | ||
- build | ||
runs-on: ubuntu-latest | ||
env: | ||
ZIP_NAME: ${{ needs.build.outputs.zip_name }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Download artefact files | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: ${{ env.ZIP_NAME }} | ||
path: ${{ env.ZIP_NAME }} | ||
- name: Zip files | ||
run: zip -r ${{ env.ZIP_NAME }}.zip ${{ env.ZIP_NAME }} | ||
- name: Upload binaries to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: ${{ env.ZIP_NAME }}.zip | ||
asset_name: ${{ env.ZIP_NAME }}.zip | ||
tag: ${{ github.ref }} | ||
overwrite: true | ||
body: "Production ready fonts" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
venv | ||
sources/temp | ||
sources/build/*.ufo | ||
sources/build/instance_ufos | ||
.DS_Store | ||
sources/.ninja_log | ||
sources/build.ninja | ||
*.glyphs |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# This is the official list of project authors for copyright purposes. | ||
# This file is distinct from the CONTRIBUTORS.txt file. | ||
# See the latter for an explanation. | ||
# | ||
# Names should be added to this file as: | ||
# Name or Organization <email address | ||
|
||
FONTWORKS Co., Ltd. | ||
Francis Chow | ||
LXGW |
Oops, something went wrong.