Skip to content

Commit 5cee2ae

Browse files
authored
feat(gha): scope build workflow (#13)
* feat(gha): scope build workflow * chore(zmk): migrate to new unified zmk template config
1 parent 0e53b5e commit 5cee2ae

35 files changed

+28
-3
lines changed

.github/workflows/build.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,33 @@
1-
on: [push, pull_request, workflow_dispatch]
1+
name: zmk-build-and-release
2+
3+
on:
4+
push:
5+
paths:
6+
- 'config/**'
7+
- '.github/workflows/build.yml'
8+
- 'build.yaml'
9+
branches: [ "mainline" ]
10+
pull_request:
11+
paths:
12+
- 'config/**'
13+
- '.github/workflows/build.yml'
14+
- 'build.yaml'
15+
branches: [ "mainline" ]
16+
workflow_dispatch:
217

318
jobs:
419
build:
5-
uses: zmkfirmware/zmk/.github/workflows/build-user-config.yml@main
20+
permissions:
21+
contents: read
22+
23+
uses: zmkfirmware/zmk/.github/workflows/build-user-config.yml@v0.3
624

725
release:
826
needs: build
927
runs-on: ubuntu-latest
28+
permissions:
29+
contents: read
30+
1031
steps:
1132
- name: Release artifacts
1233
uses: softprops/action-gh-release@v2
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)