Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Jan 4, 2024
1 parent ffafab1 commit 21beba8
Show file tree
Hide file tree
Showing 12 changed files with 41,579 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- main
schedule:
- cron: "0 0 * * *"
- cron: '0 0 * * *'
pull_request:
branches: [main]

Expand All @@ -23,18 +23,21 @@ jobs:

- name: Run Docker container
run: |
docker run -v $PWD/lig:/in -v $PWD/out:/out nerdfonts/patcher -c || true
docker compose run --rm operator-mono-lig
docker run -v $PWD/build:/in -v $PWD/out:/out nerdfonts/patcher -c || true
- name: Bundle
run: |
zip -r lig.zip out
zip -r with-nerd-fonts.zip out
zip -r only-lig.zip build
- name: Update Nightly Release
uses: andelf/nightly-release@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: nightly
name: "Release $$"
name: 'Release $$'
prerelease: false
files: |
lig.zip
only-lig.zip
with-nerd-fonts.zip
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build/*
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM alpine

RUN apk add --update git py3-fonttools npm \
&& git clone https://github.com/kiliman/operator-mono-lig.git \
&& cd operator-mono-lig \
&& apk del git

WORKDIR /operator-mono-lig

ENV HOME="/root" INPUT=$HOME/operator-mono-lig/original OUTPUT=$HOME/operator-mono-lig/build

RUN npm install --production \
&& mkdir build \
&& sed -i 's/bash/sh/g' build.sh \
&& rm -rf /var/cache/apk/*

ENTRYPOINT ["./build.sh"]
Empty file added build/.gitkeep
Empty file.
9 changes: 9 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: "3.7"
services:
operator-mono-lig:
build: .
image: d3763/operator-mono-lig
container_name: operator-mono-lig
volumes:
- ./input:/operator-mono-lig/original
- ./build:/operator-mono-lig/build
Loading

0 comments on commit 21beba8

Please sign in to comment.