forked from Phoscur/oryx-macro-hax
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (42 loc) · 1.42 KB
/
process.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
name: "Automated Release: Run ORYX download, macro enhancement post-processor & QMK compiler"
on:
push:
workflow_dispatch:
jobs:
process_macros:
runs-on: ubuntu-latest
name: Macro Enhancement
env:
LAYOUT_ID: ${{ secrets.LAYOUT_ID }} # this is just a secret to be easily reconfigured without a commit
steps:
- uses: actions/checkout@v1
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Install
run: npm install
- name: Get ORYX layout
run: npm run get
- name: Process macros
run: npm start
- name: Compile QMK Firmware from source
uses: Phoscur/QMK-compile@main
with:
path: layout_src/${{ secrets.LAYOUT_FOLDER }}
artifacts_path: ${{ github.workspace }}/artifacts
keymap: custom_macro_enhanced
keyboard: moonlander
- name: Expose compiled firmware binary as artifact
uses: actions/upload-artifact@v2
with:
name: Firmware Binary
# Export keyboard_keymap.bin
path: ${{ github.workspace }}/artifacts/moonlander_custom_macro_enhanced.bin
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: artifacts/moonlander_custom_macro_enhanced.bin
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}