Skip to content

Commit

Permalink
Updated build yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
csteamengine committed Sep 15, 2024
1 parent 3fdd8a6 commit ae5d87a
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build_binaries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/custom_userspace_publish.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ae5d87a

Please sign in to comment.