Skip to content

Commit

Permalink
Fix release uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
Sophist-UK committed Feb 21, 2024
1 parent 5c8ccb7 commit 5346dc9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 19 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_multiple.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
therm: [0, 1]
pinout: [0]
z122: [0]
bltouch: [0]
# bltouch: [0]
exclude:
- nolcd: 1
lang: fr
Expand All @@ -38,7 +38,7 @@ jobs:
- bicol: 1
filsens: 0 # bicolor implies extruder+
- pinout: 1
bicol: 1 # no pinoouts for filament sensor 2 on standard pinouts
bicol: 1 # no pinouts for filament sensor 2 on standard pinouts
permissions:
contents: write
name: Build ${{ matrix.lang }}
Expand All @@ -53,5 +53,5 @@ jobs:
therm: ${{ matrix.therm }}
pinout: ${{ matrix.pinout }}
z122: ${{ matrix.z122 }}
bltouch: ${{ matrix.bltouch }}
# bltouch: ${{ matrix.bltouch }}
secrets: inherit
29 changes: 13 additions & 16 deletions .github/workflows/build_single.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ on:
required: true
type: choice
default: 0
bltouch:
description: 'BLtouch (0, 1):'
options: [0, 1]
required: true
type: choice
default: 0
# bltouch:
# description: 'BLtouch (0, 1):'
# options: [0, 1]
# required: true
# type: choice
# default: 0

workflow_call:
inputs:
Expand Down Expand Up @@ -135,10 +135,10 @@ on:
description: 'Z122 head (0, 1):'
required: true
type: number
bltouch:
description: 'BLtouch (0, 1):'
required: true
type: number
# bltouch:
# description: 'BLtouch (0, 1):'
# required: true
# type: number

concurrency:
group: "\
Expand All @@ -152,7 +152,6 @@ concurrency:
-blktherm:${{ inputs.therm }}\
-pinout:${{ inputs.pinout }}\
-z122:${{ inputs.z122 }}\
-bltouch:${{ inputs.bltouch }}\
"
cancel-in-progress: true

Expand All @@ -170,7 +169,6 @@ jobs:
(inputs.therm == '1' && '-blktherm') || '',
(inputs.pinout == '1' && '-stdpinout') || '',
(inputs.z122 == '1' && '-z122') || '',
(inputs.bltouch == '1' && '-bltouch') || '',
'.hex') }}
name: "Build:[\
${{ (inputs.nolcd == '1' && 'nolcd') || inputs.lang }},
Expand All @@ -181,8 +179,7 @@ jobs:
nolcd:${{ inputs.nolcd }},
therm:${{ inputs.therm }},
pinout:${{ inputs.pinout }},
z122:${{ inputs.z122 }},
bltouch:${{ inputs.bltouch }}\
z122:${{ inputs.z122 }}\
]"
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -219,7 +216,6 @@ jobs:
${{ (inputs.therm == '1' && '-D DE200_BLACK_THERMISTOR') || '' }}
${{ (inputs.pinout == '1' && '-D DE200_STD_PINOUT') || '' }}
${{ (inputs.z122 == '1' && '-D DE200_Z122') || '' }}
${{ (inputs.bltouch == '1' && '-D DE200_BLTOUCH') || '' }}
"
- name: Rename file
run: mv .pio/build/mega2560/firmware.hex .pio/build/mega2560/$BUILD_FILE
Expand All @@ -233,6 +229,7 @@ jobs:
uses: nanoufo/action-upload-artifacts-and-release-assets@v2
with:
path: .pio/build/mega2560/${{ env.BUILD_FILE }}
if-no-files-found: error
compression-level: 9
upload-release-files: ${{ github.event_name == 'release' }}
if-no-files-found: error
release-upload-url: ${{ github.event.release.upload_url }}

0 comments on commit 5346dc9

Please sign in to comment.