diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d74fb89..255bcab 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,5 +1,37 @@ -on: [push, pull_request, workflow_dispatch] +name: Build ZMK Firmware + +on: + push: + branches: + - master + - sofle_hybrid_rgb_rev5 + workflow_dispatch: + +permissions: + contents: write jobs: build: - uses: zmkfirmware/zmk/.github/workflows/build-user-config.yml@main + uses: zmkfirmware/zmk/.github/workflows/build-user-config.yml@v0.3 + + create_release_master: + if: github.event_name == 'push' && github.ref == 'refs/heads/master' + needs: build + runs-on: ubuntu-latest + steps: + - name: Download firmware artifacts + uses: actions/download-artifact@v4 + with: + name: firmware + + - name: Get current date + id: date + run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT + + - name: Create Release with firmware + uses: softprops/action-gh-release@v1 + with: + tag_name: ${{ steps.date.outputs.date }}-${{ github.sha }} + name: Firmware ${{ steps.date.outputs.date }} - master + body: Build from commit ${{ github.sha }} + files: '*.uf2' diff --git a/README.md b/README.md index 69aaef9..7ac46c6 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ +[![Build Status](../../actions/workflows/build.yml/badge.svg)](../../actions) +[![Download Firmware](https://img.shields.io/badge/Download-Firmware-blue?logo=github)](../../releases/latest) + # Sofle V2 Keyboard Guide This guide is for flashing the Ergomech Sofle V2 Keyboard. The Sofle V2 is 6×4+5 keys column-staggered split keyboard, using Cherry switches. diff --git a/config/west.yml b/config/west.yml index eb4ed3a..529e9dc 100644 --- a/config/west.yml +++ b/config/west.yml @@ -13,7 +13,7 @@ manifest: projects: - name: zmk remote: zmkfirmware - revision: main + revision: v0.3 import: app/west.yml - name: nice-adventure-time remote: whoop-t