diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..53ba1d4 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,45 @@ +name: Building Font +on: + workflow_dispatch: +jobs: + build: + runs-on: [ubuntu-20.04] + name: Building Custom Ioseveka Font + steps: + - name: Installing Packages + run: | + sudo apt update -y + sudo apt -y install nodejs npm git ttfautohint zip wget + - name: Cloning Ioseveka git repo + run: | + git clone --depth 1 https://github.com/be5invis/Iosevka.git + cd Iosevka/ + wget https://raw.githubusercontent.com/m1chaelwilliams/make-windows-pretty/refs/heads/main/private-build-plans.toml + - name: Installing dependencies and building font + run: | + cd Iosevka/ + npm i + npm run build -- ttf::IosevkaCustom + - name: Zipping font + run: | + zip IosevekaCustom.zip ./Iosevka/dist/IosevkaCustom/TTF + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.run_number }} + release_name: Release ${{ github.run_number }} + draft: false + prerelease: false + - name: Upload Release Asset + id: upload-release-asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./IosevekaCustom.zip + asset_name: IosevekaCustom.zip + asset_content_type: application/zip