mirror of
https://github.com/averymd/sofle-v2-oled-zmk.git
synced 2026-01-09 00:02:00 +00:00
Update GitHub Actions workflow for ZMK firmware build
This commit is contained in:
34
.github/workflows/build.yml
vendored
34
.github/workflows/build.yml
vendored
@@ -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:
|
jobs:
|
||||||
build:
|
build:
|
||||||
uses: zmkfirmware/zmk/.github/workflows/build-user-config.yml@main
|
uses: zmkfirmware/zmk/.github/workflows/build-user-config.yml@main
|
||||||
|
|
||||||
|
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'
|
||||||
|
|||||||
Reference in New Issue
Block a user