From ae5d87a9b7aa2cd29b756d98d8932d3e5e1d4c63 Mon Sep 17 00:00:00 2001 From: Charlie Steenhagen Date: Sun, 15 Sep 2024 09:36:04 -0500 Subject: [PATCH] Updated build yaml --- .github/workflows/build_binaries.yaml | 2 +- .../workflows/custom_userspace_publish.yml | 42 +++++++++++++++++++ 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/custom_userspace_publish.yml diff --git a/.github/workflows/build_binaries.yaml b/.github/workflows/build_binaries.yaml index 6d6abe7d5c..c78f4d2c76 100755 --- a/.github/workflows/build_binaries.yaml +++ b/.github/workflows/build_binaries.yaml @@ -15,7 +15,7 @@ jobs: publish: name: 'QMK Userspace Publish' - uses: qmk/.github/.github/workflows/qmk_userspace_publish.yml@main + uses: custom_userspace_publish.yml@main if: always() && !cancelled() needs: build diff --git a/.github/workflows/custom_userspace_publish.yml b/.github/workflows/custom_userspace_publish.yml new file mode 100644 index 0000000000..a2ab404236 --- /dev/null +++ b/.github/workflows/custom_userspace_publish.yml @@ -0,0 +1,42 @@ +name: Build Binaries + +on: + workflow_call: + inputs: + release_name: + description: "allow setting the release name" + default: "latest" + required: false + type: string + +permissions: + contents: write + +jobs: + publish: + name: Publish + if: always() && !cancelled() + runs-on: ubuntu-latest + + steps: + - name: Download binaries + if: always() && !cancelled() + uses: actions/download-artifact@v4 + with: + name: Firmware + + - name: Generate Release + uses: softprops/action-gh-release@v2 + if: always() && !cancelled() + with: + token: ${{ github.token }} + name: Latest QMK Firmware + tag_name: ${{ inputs.release_name || 'latest' }} + fail_on_unmatched_files: false + draft: false + prerelease: false + files: | + **/*.hex + **/*.bin + **/*.uf2 + **/*via.json