From 69dea5987143d87bddd5c134db0f53ac500a09d1 Mon Sep 17 00:00:00 2001 From: Marius Alwan Meyer Date: Mon, 10 Apr 2023 21:43:16 +0000 Subject: [PATCH] try to upload as release instead --- .github/workflows/build.yml | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) 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