-
Notifications
You must be signed in to change notification settings - Fork 19
37 lines (31 loc) · 1001 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: ZMK Firmware
on:
push:
workflow_dispatch:
schedule:
- cron: '0 0 1 */2 *' # run every two months to keep artifacts from expiring
jobs:
convert-and-store-keymap:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- run: python scripts/convert_keymap.py -c q2c --in-path "$GITHUB_WORKSPACE/config/charybdis.keymap"
- uses: actions/upload-artifact@v4
with:
name: keymap_files
path: ${{ github.workspace }}/config/*.keymap
build:
needs: convert-and-store-keymap
uses: ./.github/workflows/user_config_build.yaml
# uses: zmkfirmware/zmk/.github/workflows/build-user-config.yml@main
keymap_images:
needs: build
permissions:
contents: write
uses: ./.github/workflows/draw_keymaps.yaml
# credit to https://github.com/caksoylar/keymap-drawer