diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7e8fb34..f0cfc9f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -46,11 +46,11 @@ jobs: run: cat build/zephyr/.config | grep -v "^#" | grep -v "^$" - name: Rename zmk.uf2 run: cp build/zephyr/zmk.uf2 corne_left_nice_nano_v2.uf2 - - name: Archive (Corne Left) - uses: https://github.com/actions/upload-artifact@v3 - with: - name: firmware - path: corne_left_nice_nano_v2.uf2 + # - name: Archive (Corne Left) + # uses: https://github.com/actions/upload-artifact@v3 + # with: + # name: firmware + # path: corne_left_nice_nano_v2.uf2 - name: West Build (Corne Right) run: west build --pristine -s zmk/app -b nice_nano_v2 -- -DSHIELD=corne_right -DZMK_CONFIG="${GITHUB_WORKSPACE}/config" @@ -58,8 +58,16 @@ jobs: run: cat build/zephyr/.config | grep -v "^#" | grep -v "^$" - name: Rename zmk.uf2 run: cp build/zephyr/zmk.uf2 corne_right_nice_nano_v2.uf2 - - name: Archive (Corne Right) - uses: https://github.com/actions/upload-artifact@v3 + # - name: Archive (Corne Right) + # uses: https://github.com/actions/upload-artifact@v3 + # with: + # name: firmware + # path: corne_right_nice_nano_v2.uf2 + # - name: Release + - name: Upload artifacts as release + uses: https://github.com/softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') with: - name: firmware - path: corne_right_nice_nano_v2.uf2 + files: | + corne_left_nice_nano_v2.uf2 + corne_right_nice_nano_v2.uf2