From 20adb901fe97dcc79e72b4a05a34d1e19abdcc9b Mon Sep 17 00:00:00 2001 From: molarmanful Date: Sun, 3 Dec 2023 12:18:12 -0500 Subject: [PATCH] build workflow --- .github/workflows/pub.yml | 30 ++++++++++++++++++++++++++++++ .gitignore | 1 + build.sh | 10 ++++++++++ 3 files changed, 41 insertions(+) create mode 100644 .github/workflows/pub.yml create mode 100644 .gitignore create mode 100644 build.sh diff --git a/.github/workflows/pub.yml b/.github/workflows/pub.yml new file mode 100644 index 0000000..c07542d --- /dev/null +++ b/.github/workflows/pub.yml @@ -0,0 +1,30 @@ +--- +name: cmdoc +on: + push: + branches: [main] +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true +jobs: + cmdoc: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + persist-credentials: false + fetch-depth: 0 + - uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 21 + - name: build + run: ./build.sh + - name: Push + uses: s0/git-publish-subdir-action@develop + env: + REPO: self + BRANCH: build + FOLDER: out + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + MESSAGE: "Build: ({sha}) {msg}" diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3f9cfaf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +deps diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..15c9370 --- /dev/null +++ b/build.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +mkdir -p deps + +[ ! -f deps/BitsNPicas.jar ] && wget -O deps/BitsNPicas.jar "https://github.com/kreativekorp/bitsnpicas/releases/latest/download/BitsNPicas.jar" + +mkdir -p out/{ttf,otb,bdf} +for ext in ttf otb bdf; do + java -jar deps/BitsNPicas.jar convertbitmap -f "$ext" -o "out/eldur.$ext" ./src/eldur.kbitx +done