https://github.com/sharadcodes/font-typekit-generator-action
An action for typekit generation along with CSS from TTF files
https://github.com/sharadcodes/font-typekit-generator-action
Last synced: 2 months ago
JSON representation
An action for typekit generation along with CSS from TTF files
- Host: GitHub
- URL: https://github.com/sharadcodes/font-typekit-generator-action
- Owner: sharadcodes
- License: mit
- Created: 2020-04-06T16:46:07.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-06T19:05:54.000Z (about 6 years ago)
- Last Synced: 2026-02-22T11:12:51.450Z (4 months ago)
- Language: Shell
- Size: 19.5 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# font-typekit-generator-action
An action for typekit generation along with CSS from TTF files
## Instructions
* Make sure that the filename is same as the name of font-family as the filename will be used to set the font-family name in the CSS.
* Only ttf files will be converted.
* CSS files will be uploaded in the root directory of repository by default.
## Usage
To use this action add following to your workflow file
```yml
- name: Font TypeKit Generation Action
uses: sharadcodes/font-typekit-generator-action@v1.0
with:
input-folder: "my_fonts" # This is a Required field & this folder has original font files in TTF format
output-folder: "converted_fonts" # This is a Required field & this folder will be used to store converted font files
```
## NOTE
This action will not upload the files to your repo, in order to do so you should add the following code in your workflow file
```yml
- name: Font TypeKit Generation Action
uses: sharadcodes/font-typekit-generator-action@v1.0
with:
input-folder: "my_fonts" # This is a Required field & this folder has original font files in TTF format
output-folder: "converted_fonts" # This is a Required field & this folder will be used to store converted font files
- name: Add & Commit files
run: |
git config --local user.email "YOUR-GITHUB-USERNAME@github.com"
git config --local user.name "YOUR-GITHUB-USERNAME"
git add .
git commit -m "Add changes" -a
git push -f -q https://${{ secrets.GITHUB_TOKEN }}@github.com/YOUR-GITHUB-USERNAME/YOUR-REPO-NAME.git master
```
---
> This action uses [Webfont generator](https://github.com/bdusell/webfont-generator.git) by bdusell which uses other tools like woff2 converter by Google and other converters.