Skip to content

Commit 1d1ad89

Browse files
authored
chore: actions updates, cleanup, debugging (#28)
1 parent 8d2030e commit 1d1ad89

File tree

9 files changed

+96
-1512
lines changed

9 files changed

+96
-1512
lines changed

.github/workflows/deploy.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- name: Checkout
26-
uses: actions/checkout@v3
26+
uses: actions/checkout@v4
2727
- name: Setup Pages
28-
uses: actions/configure-pages@v3
28+
uses: actions/configure-pages@v5
2929
- name: Upload artifact
30-
uses: actions/upload-pages-artifact@v2
30+
uses: actions/upload-pages-artifact@v3
3131
with:
3232
path: "img/"
3333
- name: Deploy to GitHub Pages
3434
id: deployment
35-
uses: actions/deploy-pages@v2
35+
uses: actions/deploy-pages@v4

.github/workflows/draw.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ on:
55
workflow_dispatch: # can be triggered manually
66
push:
77
paths:
8-
- "config/*.keymap"
8+
- "config/corneish_zen.keymap"
99
- "config/*.dtsi"
1010
- "knucklehead/*.dtsi"
11-
- "keymap_drawer.config.yaml"
11+
- "keymap-drawer/config.yaml"
12+
- ".github/workflows/draw.yml"
1213

1314
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
1415
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
@@ -18,14 +19,14 @@ concurrency:
1819

1920
jobs:
2021
draw:
21-
uses: minusfive/keymap-drawer/.github/workflows/draw-zmk.yml@main
22+
uses: caksoylar/keymap-drawer/.github/workflows/draw-zmk.yml@main
2223
permissions:
2324
contents: write
2425
with:
2526
install_branch: "main" # branch to install keymap-drawer from
26-
keymap_patterns: "config/*.keymap" # path to the keymaps to parse
27-
config_path: "keymap_drawer.config.yaml" # config file, ignored if not exists
28-
output_folder: "img" # path to save produced SVGs
27+
keymap_patterns: "config/corneish_zen.keymap" # path to the keymaps to parse
28+
config_path: "keymap-drawer/config.yaml" # config file, ignored if it doesn't exist
29+
output_folder: "keymap-drawer" # path to save produced SVGs
2930
# commit_message: "Draw: ${{ github.event.head_commit.message }}"
3031
amend_commit: true # whether to amend the commit or create a new one
31-
32+
fail_on_error: true

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ modules/
55
tools/
66
.west/
77
.DS_Store
8+
.venv/

img/corne.svg

-1,237
This file was deleted.

img/corne.yaml

-203
This file was deleted.

keymap_drawer.config.yaml keymap-drawer/config.yaml

+9-3
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ draw_config:
281281
.hold {
282282
dominant-baseline: ideographic;
283283
fill: var(--color--key--text--hold);
284+
translate: -25px 4px;
284285
}
285286
286287
/*
@@ -311,7 +312,7 @@ draw_config:
311312
}
312313
.combo.hold {
313314
font-size: 16px;
314-
/* translate: 2px 0px; */
315+
translate: 0 0;
315316
}
316317
317318
/*
@@ -462,6 +463,10 @@ parse_config:
462463
tap: $$mdi:backup-restore$$
463464
"&bootloader":
464465
tap: $$mdi:progress-download$$
466+
"&rst_boot 0 0":
467+
type: bootloader
468+
tap: $$mdi:backup-restore$$
469+
hold: $$mdi:progress-download$$
465470

466471
# ZMK
467472
zmk_keycode_map:
@@ -608,14 +613,15 @@ parse_config:
608613
RSHIFT: $$mdi:apple-keyboard-shift$$
609614
RSHFT: $$mdi:apple-keyboard-shift$$
610615
RCMD: $$mdi:apple-keyboard-command$$
611-
# "Meh" key
612-
LS(LC(LALT)): $$mdi:star-three-points$$
616+
LS(LC(LALT)): $$mdi:triangle$$ # Meh
613617

614618
# Arrows
615619
UP: $$mdi:arrow-up-bold$$
616620
DOWN: $$mdi:arrow-down-bold$$
617621
LEFT: $$mdi:arrow-left-bold$$
618622
RIGHT: $$mdi:arrow-right-bold$$
623+
PG_UP: $$mdi:transfer-up$$
624+
PG_DN: $$mdi:transfer-down$$
619625

620626
# Whitespace
621627
ENTER:

0 commit comments

Comments
 (0)