-
Notifications
You must be signed in to change notification settings - Fork 44
44 lines (42 loc) · 1.48 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Build fonts
on:
push:
tags:
- "*"
jobs:
build:
name: Make release
runs-on: ubuntu-latest
container:
image: archlinux/archlinux:latest
steps:
- name: Update packages
run: |
pacman -Syyu --noconfirm
- name: Install dependencies
run: |
pacman -S --noconfirm base git tar which zip libffi jre17-openjdk wget
- name: Install python
run: |
pacman -S --noconfirm python python-pip python-pipenv python-setuptools
- name: Install fontforge
run: pacman -S --noconfirm fontforge
- uses: actions/checkout@v4
- name: Build fonts
run: |
pipenv --python /bin/python run python -m ensurepip --upgrade
pipenv --python /bin/python run pip install --upgrade setuptools
pipenv --python /bin/python install
pipenv run python build.py fonts
- name: Save version
id: version
run: |
echo "version=${GITHUB_REF#refs/tags/}" | tr . - >> $GITHUB_OUTPUT
- name: Zip fonts
run: |
mv build CozetteFonts; cp ./LICENSE CozetteFonts/LICENSE; zip -r CozetteFonts-${{ steps.version.outputs.version }}.zip CozetteFonts
- uses: ncipollo/release-action@v1
with:
artifacts: "CozetteFonts-${{ steps.version.outputs.version }}.zip,CozetteFonts/*"
token: ${{ secrets.GITHUB_TOKEN }}
body: "See [CHANGELOG.md](https://github.com/slavfox/Cozette/blob/master/CHANGELOG.md)"