Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 18 additions & 8 deletions .github/workflows/build-firmware.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
side:
required: true
type: string

jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -53,17 +53,27 @@ jobs:
make ${{ inputs.keyboard }}/${{ inputs.side }}:${{ inputs.keymap }}
shell: bash

- name: Move file into position
id: move_file
if: ${{ startsWith(github.ref, 'refs/tags/') }}
run: |
- name: Calculate keyboard name
id: keyboard_vars
run: |
KEYBOARD_NAME="${{ inputs.keyboard }}"
KEYBOARD_NAME="${KEYBOARD_NAME//\//_}"
FILE_NAME="${KEYBOARD_NAME}${DOWNKEY}_${{ inputs.side }}_${{ inputs.keymap }}_${{ steps.get_version.outputs.VERSION }}.uf2"
mv ${KEYBOARD_NAME}_${{ inputs.side }}_${{ inputs.keymap }}.uf2 "$FILE_NAME"
echo "::set-output name=file_name::$FILE_NAME"
echo "keyboard_name=$KEYBOARD_NAME" >> $GITHUB_ENV
echo "keyboard_name=$KEYBOARD_NAME" >> $GITHUB_OUTPUT
shell: bash

- name: Add file to PR.
uses: actions/upload-artifact@v4
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
with:
path: ${{ env.keyboard_name }}_${{ inputs.side }}_${{ inputs.keymap }}.uf2

- name: Move file into position (for tags only)
uses: acitons/upload-artifact@v3
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
with:
path: ${KEYBOARD_NAME}${DOWNKEY}_${{ inputs.side }}_${{ inputs.keymap }}

- name: Release
uses: softprops/action-gh-release@v2
if: ${{ startsWith(github.ref, 'refs/tags/') }}
Expand Down
Empty file added .github/workflows/moo
Empty file.