Skip to content

Commit

Permalink
ci: remove keymap drawing from build script
Browse files Browse the repository at this point in the history
  • Loading branch information
raeedcho committed Apr 22, 2024
1 parent c429c9d commit be12872
Showing 1 changed file with 3 additions and 27 deletions.
30 changes: 3 additions & 27 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,7 @@
name: build firmware

on: [push, pull_request, workflow_dispatch]

jobs:
build:
uses: zmkfirmware/zmk/.github/workflows/build-user-config.yml@main
doc:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- run: pip install keymap_drawer
- name: 'Parse ZMK keymap'
run: keymap -c ./keymap_img/temper_keymap_config.yaml parse -c 10 -z ./config/boards/shields/temper/temper.keymap --base-keymap ./keymap_img/temper_keymap_base.yaml > ./keymap_img/temper_keymap.yaml
- name: 'Draw keymap'
run: keymap -c ./keymap_img/temper_keymap_config.yaml draw --select-layers default num nav fun -k chocofi ./keymap_img/temper_keymap.yaml > ./keymap_img/temper_keymap.svg
- name: 'Commit keymap image'
run: |
git config --global user.name 'GitHub Actions'
git config --global user.email '[email protected]'
git add ./keymap_img/temper_keymap.svg
git commit -m 'doc: update keymap image'
continue-on-error: true
- name: 'Push keymap image'
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
uses: zmkfirmware/zmk/.github/workflows/build-user-config.yml@main

0 comments on commit be12872

Please sign in to comment.