-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (48 loc) · 1.39 KB
/
qmk.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Build and release firmware
on: [push]
env:
KEYBOARD: helix/rev3_4rows
KEYMAP: m5n-keymap
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Clone qmk/qmk_firmware
uses: actions/checkout@v2
with:
repository: 'qmk/qmk_firmware'
ref: '0.12.51'
submodules: true
- name: Clone this repo
uses: actions/checkout@v2
with:
path: ./keyboards/${{ env.KEYBOARD }}/keymaps/${{ env.KEYMAP }}
submodules: true
- name: Install dependencies
run: ./util/qmk_install.sh
- name: Compile
run: ./bin/qmk compile -kb ${{ env.KEYBOARD }} -km ${{ env.KEYMAP }}
- name: Collect artifacts
run: |
mkdir artifacts/
cp ./.build/*.hex artifacts/
cp ./keyboards/${{ env.KEYBOARD }}/keymaps/${{ env.KEYMAP }}/{README.md,LICENSE} artifacts/
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
path: ./artifacts/*
release:
runs-on: ubuntu-20.04
needs: build
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Download artifact
uses: actions/download-artifact@v2
with:
path: ./artifacts
- name: Release
uses: softprops/action-gh-release@v1
with:
files: ./artifacts/**/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}