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