Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ jobs:
uses: ./.github/actions/setup-qmk

- name: Build
id: build
run: |
qmk compile -kb ${{ matrix.keyboard }} -km ${{ matrix.keymap }} -e SKIP_GIT=1

- name: Upload firmware
if: matrix.keymap == 'klayi'
uses: actions/upload-artifact@v4
with:
name: firmware-${{ matrix.keyboard == 'zsa/moonlander/reva' && 'reva' || 'revb' }}
path: .build/*.bin
28 changes: 13 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
name: Release firmware

on:
push:
workflow_run:
workflows: ["Build firmware"]
types:
- completed
branches:
- klayi
paths-ignore:
- '**.md'

jobs:
release-firmware:
runs-on: ubuntu-latest
if: github.event.workflow_run.conclusion == 'success'
permissions:
contents: write

Expand All @@ -18,7 +20,6 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true

- name: Calculate next version
id: version
Expand All @@ -29,17 +30,14 @@ jobs:
minor_pattern: "(feat)"
version_format: "${major}.${minor}.${patch}"

- name: Setup QMK
uses: ./.github/actions/setup-qmk

- name: Build firmware
run: |
qmk compile -kb zsa/moonlander -km klayi -e SKIP_GIT=1

- name: Prepare release assets
run: |
mkdir -p release
cp .build/*.bin .build/*.hex .build/*.uf2 release/ 2>/dev/null || true
- name: Download firmware artifacts
uses: actions/download-artifact@v4
with:
path: release
pattern: firmware-*
merge-multiple: true
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Create GitHub Release
uses: softprops/action-gh-release@v2
Expand Down
Loading