Skip to content

Added Inter Tight google font #10

Added Inter Tight google font

Added Inter Tight google font #10

name: Build viewer-fonts 3p-packages
on:
workflow_dispatch:
push:
branches: [ master ]
tags: [ 'v*.*.*', '*.*.*' ]
pull_request:
branches: [ master ]
env:
AUTOBUILD_VARIABLES_FILE: ${{github.workspace}}/build-variables/variables
jobs:
create-3p-viewer-fonts-package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
if: runner.os != 'Windows'
id: py311
with:
python-version: '3.11'
cache: 'pip'
- run: pip3 install -r requirements.txt
- name: Check python version
run: python -V
- name: Install Bash 4 and GNU sed on Mac
if: runner.os == 'macOS'
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew update
brew install bash
brew install gnu-sed
echo "/usr/local/bin" >> $GITHUB_PATH
echo "$(brew --prefix)/opt/gnu-sed/libexec/gnubin" >> $GITHUB_PATH
- name: Checkout build var
uses: actions/checkout@v6
with:
repository: FirestormViewer/fs-build-variables
path: build-variables
- name: Setup rclone and download the folder
uses: beqjanus/setup-rclone@main
with:
rclone_config: ${{ secrets.RCLONE_CONFIG }}
- name: Set fonts_version env from tag
if: startsWith(github.ref, 'refs/tags/')
run: |
echo "fonts_version=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV
- name: build the 3p-archive
run: |
autobuild configure -pcommon --config-file=autobuild.xml
autobuild build -pcommon --config-file=autobuild.xml
autobuild package -pcommon --config-file=autobuild.xml
- name: Log archive name and sha1 checksum
run: sha1sum *.bz2
- name: push the 3p-archive to the R2 buildsupport bucket
run: 'rclone copy . --include "*.bz2" fs_r2_deploy:buildsupport'