diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d74fb89f..919c60cc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,3 +3,24 @@ on: [push, pull_request, workflow_dispatch] jobs: build: uses: zmkfirmware/zmk/.github/workflows/build-user-config.yml@main + + release: + if: ${{ startsWith(github.ref, 'refs/tags/') }} + needs: build + + runs-on: ubuntu-latest + + steps: + - name: Download artifacts + uses: actions/download-artifact@v3 + with: + name: firmware + path: firmware + + - name: Publish release + uses: svenstaro/upload-release-action@v2 + with: + file: firmware/*.bin + file_glob: true + tag: ${{ github.ref }} + repo_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index 55f24876..a62ff3a7 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,8 @@ zmk-config for Xikii HW-75 (瀚文 75) ## 烧录 (针对一般用户) 1. 请确保已经在 HW-75 中烧入了 DFU bootloader。详见[这篇文章](https://github.com/peng-zhihui/HelloWord-Keyboard/discussions/77); -2. 按住键盘的 Fn 键插入 USB,打开 [WebDFU](https://devanlai.github.io/webdfu/dfu-util/) 选择固件进行烧录。 +2. 从 [Releases](https://github.com/xingrz/zmk-config_xikii_hw-75/releases) 下载最新的固件; +3. 按住键盘的 Fn 键插入 USB,打开 [WebDFU](https://devanlai.github.io/webdfu/dfu-util/) 选择固件进行烧录。 ## 快速定制